/* ===== Toko Bahan Bangunan — style "Vibrant Bento Market" ===== */

:root {
  --bg: #fdf9f3;
  --surface: #ffffff;
  --text: #2b2d42;
  --text-muted: #6d6f82;
  --border: #efe6d8;
  --pink: #ef476f;
  --blue: #118ab2;
  --yellow: #ffd166;
  --orange: #fb8500;
  --green: #06d6a0;
  --purple: #7b61ff;
  --navy: #2b2d42;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.12);
  --transition: 240ms ease;
}
[data-theme="dark"] {
  --bg: #1c1e2e;
  --surface: #262940;
  --text: #f0f1f7;
  --text-muted: #a5a8c0;
  --border: #363a58;
  --navy: #f0f1f7;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito", sans-serif; background: var(--bg); color: var(--text); transition: background var(--transition), color var(--transition); overflow-x: hidden; }
h1, h2, h3 { font-family: "Baloo 2", cursive; margin: 0; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.demo-banner { background: var(--navy); color: var(--yellow); text-align: center; font-size: 0.78rem; padding: 6px 12px; }
[data-theme="dark"] .demo-banner { background: #12131f; }
.demo-banner strong { color: #fff; }
[data-theme="dark"] .demo-banner strong { color: var(--green); }

/* ===== Buttons & chips ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-weight: 700; font-family: "Baloo 2", cursive; border-radius: 999px; cursor: pointer; border: none; font-size: 0.95rem; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-navy { background: var(--navy); color: var(--bg); }
.btn-ghost { background: transparent; border: 2px solid var(--navy); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }

.section-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 0.78rem; margin-bottom: 10px; }
.chip-pink { background: color-mix(in srgb, var(--pink) 15%, transparent); color: var(--pink); }
.chip-blue { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.chip-yellow { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.chip-green { background: color-mix(in srgb, var(--green) 18%, transparent); color: #059473; }
.chip-purple { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
.chip-orange { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
[data-theme="dark"] .chip-green { color: var(--green); }

.icon-btn { position: relative; background: var(--surface); border: 2px solid var(--border); color: var(--text); width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; border-radius: 50%; transition: transform var(--transition), border-color var(--transition); }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--pink); }
.badge { position: absolute; top: -4px; right: -4px; background: var(--pink); color: #fff; font-size: 0.6rem; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.badge.pop { animation: pop 300ms ease; }
@keyframes pop { 0% { transform: scale(1);} 40% { transform: scale(1.5);} 100% { transform: scale(1);} }
.hamburger { display: none; }

/* ===== Navbar ===== */
.navbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 2px solid var(--border); }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; gap: 16px; }
.brand { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.brand span:last-child, .brand > span:not(.brand-blob) { color: var(--pink); }
.brand-blob { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 700; font-size: 0.85rem; padding: 6px 2px; border-bottom: 3px solid transparent; transition: color var(--transition), border-color var(--transition); }
.nav-links a:hover { color: var(--pink); border-color: var(--yellow); }
.navbar-actions { display: flex; gap: 8px; }

@media (max-width: 960px) {
  .hamburger { display: inline-flex; }
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 260px; background: var(--surface); flex-direction: column; padding: 90px 30px; gap: 20px; transform: translateX(100%); transition: transform 280ms ease; box-shadow: var(--shadow); z-index: 45; }
  .nav-links.open { transform: translateX(0); }
}
@media (max-width: 480px) {
  .navbar-inner { padding: 10px 12px; gap: 6px; }
  .brand { font-size: 1rem; }
  .icon-btn { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ===== Hero — blob berwarna + kolase bento ===== */
.hero { position: relative; overflow: hidden; padding: 70px 24px 60px; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: var(--yellow); top: -120px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--pink); bottom: -140px; right: -80px; }
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--border); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; color: var(--orange); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 18px 0 14px; }
.grad-text { background: linear-gradient(90deg, var(--pink), var(--orange), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; max-width: 480px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mini-stats { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.mini-stat { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.mini-stat i { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; }
.hero-visual img { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { max-width: 420px; margin: 0 auto; } }

/* ===== Brand strip ===== */
.brand-strip { background: var(--navy); overflow: hidden; padding: 14px 0; }
[data-theme="dark"] .brand-strip { background: #12131f; }
.brand-track { display: flex; gap: 60px; width: max-content; animation: marquee 20s linear infinite; }
.brand-strip:hover .brand-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.brand-item { color: var(--bg); font-family: "Baloo 2", cursive; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; white-space: nowrap; opacity: 0.85; }
[data-theme="dark"] .brand-item { color: #f0f1f7; }
.brand-item i { color: var(--yellow); }

/* ===== Sections ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 70px 24px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-sub { color: var(--text-muted); margin-top: 8px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Bento kategori — tiap kartu warna beda, ukuran beda ===== */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.bento-card { position: relative; border-radius: var(--radius); padding: 22px; color: #fff; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: transform var(--transition), box-shadow var(--transition); }
.bento-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow); }
.bento-card:nth-child(1), .bento-card:nth-child(4) { grid-row: span 2; }
.bento-card h3 { font-size: 1.1rem; }
.bento-card span { font-size: 0.78rem; opacity: 0.9; font-weight: 600; }
.bento-card img { position: absolute; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 12px; border: 3px solid rgba(255,255,255,0.6); object-fit: cover; }
.bento-card .bento-deco { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.15); top: -40px; left: -40px; }
@media (max-width: 880px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } }

/* ===== Flash sale ===== */
.flash-section { background: linear-gradient(120deg, color-mix(in srgb, var(--yellow) 30%, var(--bg)), color-mix(in srgb, var(--pink) 14%, var(--bg))); max-width: none; }
.flash-section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.flash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.countdown { display: flex; align-items: center; gap: 8px; }
.count-box { background: var(--navy); color: #fff; border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; min-width: 62px; }
[data-theme="dark"] .count-box { background: #12131f; }
.count-box span { font-family: "Baloo 2", cursive; font-size: 1.4rem; font-weight: 800; display: block; }
.count-box small { font-size: 0.62rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.count-sep { font-weight: 800; font-size: 1.3rem; }
.flash-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

/* ===== Product cards ===== */
.katalog-tools { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--border); padding: 12px 18px; border-radius: 999px; width: min(420px, 100%); }
.search-box input { border: none; background: transparent; outline: none; color: var(--text); width: 100%; font-size: 0.9rem; font-family: inherit; }
.search-box i { color: var(--text-muted); }
.chip-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip-bar button { border: 2px solid var(--border); background: var(--surface); color: var(--text-muted); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.8rem; cursor: pointer; font-family: inherit; transition: all var(--transition); }
.chip-bar button:hover { transform: translateY(-2px); }
.chip-bar button.active { color: #fff; border-color: transparent; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product-card { position: relative; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-flag { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.flag-sale { background: var(--pink); animation: pulse 1.6s ease-in-out infinite; }
.flag-out { background: var(--text-muted); }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.08);} }
.wishlist-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); color: #b9bdd0; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: color var(--transition), transform var(--transition); }
.wishlist-btn:hover { transform: scale(1.12); }
.wishlist-btn.active { color: var(--pink); }
.product-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-weight: 700; font-size: 0.92rem; margin: 6px 0 10px; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.price-now { font-family: "Baloo 2", cursive; font-weight: 800; font-size: 1.08rem; color: var(--pink); }
.price-old { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.price-unit { font-size: 0.72rem; color: var(--text-muted); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 10px; font-size: 0.75rem; }
.btn-outline-navy { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline-navy:hover { border-color: var(--navy); }

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

/* ===== Kalkulator banner ===== */
.calc-banner { margin-top: 44px; background: linear-gradient(120deg, var(--purple), var(--blue)); border-radius: var(--radius); padding: 30px; color: #fff; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; align-items: center; }
.calc-banner-text h3 { font-size: 1.25rem; margin-bottom: 6px; }
.calc-banner-text p { margin: 0; opacity: 0.9; font-size: 0.88rem; }
.calc-banner-form { display: flex; gap: 10px; }
.calc-banner-form input { flex: 1; padding: 13px 16px; border: none; border-radius: 999px; font-family: inherit; font-size: 0.9rem; outline: none; }
.calc-result { grid-column: 1 / -1; background: rgba(255,255,255,0.16); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 0.88rem; line-height: 1.7; }
@media (max-width: 760px) { .calc-banner { grid-template-columns: 1fr; } }

/* ===== Galeri foto + lightbox ===== */
.galeri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.galeri-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; border: 2px solid var(--border); }
.galeri-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 400ms ease; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-caption { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(20,20,30,0.85)); color: #fff; padding: 30px 16px 14px; opacity: 0; transition: opacity var(--transition); }
.galeri-item:hover .galeri-caption { opacity: 1; }
.galeri-caption strong { display: block; font-size: 0.9rem; }
.galeri-caption span { font-size: 0.72rem; opacity: 0.85; }
@media (max-width: 760px) { .galeri-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(15, 16, 28, 0.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: min(760px, 88vw); }
.lightbox img { width: 100%; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox figcaption strong { display: block; font-family: "Baloo 2", cursive; font-size: 1.1rem; }
.lightbox figcaption span { font-size: 0.8rem; opacity: 0.75; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.12); color: #fff; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); color: #fff; border: none; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: background var(--transition); }
.lightbox-nav:hover { background: var(--pink); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

/* ===== Stats ===== */
.stats-section { background: var(--navy); max-width: none; border-radius: 40px 40px 0 0; }
[data-theme="dark"] .stats-section { background: #12131f; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; text-align: center; }
.stat-card { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 24px 16px; }
.stat-card i { font-size: 1.5rem; width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 12px; }
.stat-num-row { font-family: "Baloo 2", cursive; font-size: 2rem; font-weight: 800; color: #fff; }
.stat-card p { color: rgba(255,255,255,0.7); margin: 6px 0 0; font-size: 0.8rem; font-weight: 600; }

/* ===== Testimoni ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.testi-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 22px; border-top: 6px solid; }
.testi-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin: 0 0 16px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Baloo 2", cursive; font-weight: 800; }
.testi-name { font-weight: 800; font-size: 0.88rem; }
.testi-role { font-size: 0.72rem; color: var(--text-muted); }

/* ===== FAQ accordion ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-family: inherit; font-weight: 700; font-size: 0.92rem; color: var(--text); cursor: pointer; text-align: left; }
.faq-q i { color: var(--pink); transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-item.open .faq-a { max-height: 220px; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; }

/* ===== Kontak ===== */
.kontak-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; box-shadow: var(--shadow); }
.kontak-info p { color: var(--text-muted); margin: 12px 0 20px; }
.kontak-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 700; font-size: 0.92rem; }
.kontak-line i { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--pink) 12%, transparent); color: var(--pink); display: inline-flex; align-items: center; justify-content: center; }
.kontak-form { display: flex; flex-direction: column; gap: 12px; }
.kontak-form input, .kontak-form textarea { padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.9rem; resize: vertical; outline: none; transition: border-color var(--transition); }
.kontak-form input:focus, .kontak-form textarea:focus { border-color: var(--pink); }
@media (max-width: 760px) { .kontak-card { grid-template-columns: 1fr; padding: 26px; } }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 60px 24px 26px; }
[data-theme="dark"] .footer { background: #12131f; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer .brand { justify-content: center; color: #fff; }
.footer p { max-width: 420px; margin: 14px auto 20px; font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; font-size: 0.82rem; font-weight: 700; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-size: 0.72rem; }
.footer-bottom a { color: var(--yellow); }

/* ===== WA float ===== */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow); transition: transform var(--transition); }
.wa-float:hover { transform: scale(1.1); }

/* ===== Overlay / Modal / Offcanvas / Toast ===== */
.overlay-backdrop { position: fixed; inset: 0; background: rgba(20, 21, 34, 0.6); z-index: 49; opacity: 0; transition: opacity var(--transition); }
.overlay-backdrop.show { opacity: 1; }
.modal { position: fixed; top: 50%; left: 50%; z-index: 60; background: var(--surface); color: var(--text); width: min(440px, 90vw); max-height: 85vh; overflow: auto; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 28px 28px; transform: translate(-50%, -50%) scale(0.9); opacity: 0; pointer-events: none; transition: transform var(--transition), opacity var(--transition); }
.modal.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--text); z-index: 2; }
.promo-modal { text-align: center; overflow: hidden; }
.promo-confetti span { position: absolute; width: 12px; height: 12px; border-radius: 3px; top: -14px; animation: confetti 2.6s linear infinite; }
.promo-confetti span:nth-child(1) { left: 12%; background: var(--pink); animation-delay: 0s; }
.promo-confetti span:nth-child(2) { left: 28%; background: var(--yellow); animation-delay: 0.5s; }
.promo-confetti span:nth-child(3) { left: 46%; background: var(--green); animation-delay: 1s; }
.promo-confetti span:nth-child(4) { left: 62%; background: var(--purple); animation-delay: 0.3s; }
.promo-confetti span:nth-child(5) { left: 78%; background: var(--blue); animation-delay: 0.8s; }
.promo-confetti span:nth-child(6) { left: 90%; background: var(--orange); animation-delay: 1.4s; }
@keyframes confetti { to { transform: translateY(480px) rotate(360deg); } }
.promo-tag { display: inline-block; background: var(--yellow); color: var(--navy); font-family: "Baloo 2", cursive; font-weight: 800; padding: 6px 18px; border-radius: 999px; font-size: 0.8rem; margin-bottom: 12px; }
[data-theme="dark"] .promo-tag { color: #12131f; }
.promo-modal h3 { font-size: 1.6rem; margin-bottom: 10px; }
.promo-modal p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 22px; }
.promo-note { font-size: 0.7rem; margin-top: 14px !important; }

.quickview-modal { width: min(620px, 92vw); }
.quickview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quickview-body img { border-radius: var(--radius-sm); border: 2px solid var(--border); }
.qv-name { font-size: 1.2rem; margin: 6px 0 10px; }
.qv-desc { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
@media (max-width: 560px) { .quickview-body { grid-template-columns: 1fr; } }

.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; border-radius: var(--radius) 0 0 var(--radius); }
.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: 1.05rem; 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: "Baloo 2", cursive; font-weight: 800; }
.offcanvas-note { font-size: 0.7rem; 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-radius: var(--radius-sm); border: 2px solid var(--border); }
.cart-line-info { flex: 1; }
.cart-line-name { font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.cart-line-price { font-size: 0.76rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button { width: 24px; height: 24px; border: 2px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; border-radius: 8px; font-weight: 800; }
.remove-line { background: none; border: none; color: var(--pink); cursor: pointer; font-size: 0.9rem; }

.toast-container { position: fixed; top: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--navy); color: #fff; padding: 13px 18px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); animation: toast-in 240ms ease; max-width: 320px; }
[data-theme="dark"] .toast { background: #12131f; }
.toast i { color: var(--yellow); }
.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);} }
