/* ============================================
   LINKIFY — index.css (Halaman Toko Publik)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* FIX: html height 100%, body min-height 100vh agar background stretch penuh */
html { height: 100%; background-color: #0d0d1a; }

/* ── TEMA MIDNIGHT (default) ── */
body {
  --bg-c1: #0d0d1a;
  --bg-c2: #131328;
  --accent-glow:  rgba(255,107,53,0.14);
  --accent-glow2: rgba(100,80,200,0.1);
  --card-bg:      rgba(255,255,255,0.055);
  --card-border:  rgba(255,255,255,0.1);
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.55);
  --footer-color: rgba(255,255,255,0.55);
  --section-border: rgba(255,255,255,0.08);

  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-c1);
  background-image:
    radial-gradient(ellipse 75% 55% at 18% 12%, var(--accent-glow)  0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 82% 82%, var(--accent-glow2) 0%, transparent 55%);
  /* FIX: scroll bukan fixed — mobile tidak support fixed attachment */
  background-attachment: scroll;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.45s ease;
}

/* ── TEMA WHITE ── */
body[data-theme="white"] {
  --bg-c1: #f0f2ff;
  --bg-c2: #e8ecfb;
  --accent-glow:  rgba(255,107,53,0.07);
  --accent-glow2: rgba(120,100,255,0.06);
  --card-bg:      rgba(255,255,255,0.72);
  --card-border:  rgba(0,0,0,0.07);
  --text:         #111827;
  --text-muted:   rgba(17,24,39,0.52);
  --footer-color: rgba(17,24,39,0.55);
  --section-border: rgba(0,0,0,0.08);
  background-color: var(--bg-c1);
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 10%, var(--accent-glow)  0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 85%, var(--accent-glow2) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(200,210,255,0.35) 0%, transparent 65%);
}
body[data-theme="white"] .share-btn,
body[data-theme="white"] .theme-wrap  { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.09); }
body[data-theme="white"] .theme-pill  { color: rgba(0,0,0,0.45); }
body[data-theme="white"] .theme-pill:hover { color: rgba(0,0,0,0.75); }
body[data-theme="white"] .theme-pill.active { background: rgba(0,0,0,0.09); color: #111; }
body[data-theme="white"] .share-btn   { color: #111; }
body[data-theme="white"] .skel-box    { background: rgba(255,255,255,0.5); }
body[data-theme="white"] .skel        { background: linear-gradient(90deg,#e8e8e8 25%,#d4d4d4 50%,#e8e8e8 75%); background-size: 200%; }
body[data-theme="white"] .section-line{ background: var(--section-border); }

/* ── LAYOUT ── */
.container { max-width: 480px; margin: 0 auto; padding: 22px 16px 140px; }

/* ── TOP BAR ── */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 10px; }
.theme-wrap {
  display: flex; gap: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  border-radius: 50px; padding: 4px;
}
.theme-pill {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 50px;
  border: none; background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 0.22s;
}
.theme-pill:hover  { color: rgba(255,255,255,0.85); }
.theme-pill.active { background: rgba(255,255,255,0.16); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.share-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  border-radius: 14px; color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.share-btn:active { transform: scale(0.9); }

/* ── HERO ── */
.hero { text-align: center; margin-bottom: 32px; }
.logo-ring {
  width: 120px; height: 120px; border-radius: 50%;
  padding: 3px;
  background: linear-gradient(270deg, #FF6B35, #FFD700, #FF6B35);
  background-size: 400% 400%;
  animation: rotateBorder 3s ease infinite;
  margin: 0 auto 18px;
  box-shadow: 0 12px 32px rgba(255,107,53,0.25);
}
.logo-img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-c1);
  animation: float 3.5s ease-in-out infinite;
  background: var(--bg-c2);
  transition: border-color 0.45s;
}
.store-name  { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 8px; text-transform: lowercase; }
.store-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* ── SECTION ── */
.sec       { margin-bottom: 28px; }
.sec-head  { margin-bottom: 14px; }
.sec-label { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); display: block; }
.section-line { display: block; width: 36px; height: 3px; background: linear-gradient(90deg,#FF6B35,#FFD700); border-radius: 2px; margin-top: 7px; }

/* ── PLATFORM BUTTONS ── */
.plat-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 15px 20px; margin-bottom: 11px;
  border-radius: 16px; border: none;
  color: white; text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plat-btn:hover  { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.plat-btn:active { transform: translateY(-1px); }
.plat-btn::after {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.55s;
}
.plat-btn:hover::after { left: 150%; }
.plat-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.plat-icon svg { width: 22px; height: 22px; }
.wa-btn     { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.shopee-btn { background: linear-gradient(135deg, #EE4D2D 0%, #FF6633 100%); }
.tokped-btn { background: linear-gradient(135deg, #03AC0E 0%, #027a09 100%); }

/* ── PRODUCT GRID ── */
.prod-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.prod-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 18px; overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
}
.prod-card:hover { transform: scale(1.025); box-shadow: 0 12px 28px rgba(0,0,0,0.25); }
.prod-img-wrap { position: relative; }
.prod-img  { width: 100%; height: 155px; object-fit: cover; display: block; background: rgba(255,255,255,0.05); }
.habis-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #fff;
}
.prod-body  { padding: 12px 13px 14px; }
.prod-name  {
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-price {
  font-size: 14px; font-weight: 800; color: #FF6B35;
  background: rgba(255,107,53,0.1); display: inline-block;
  padding: 2px 8px; border-radius: 6px; margin-bottom: 10px;
}
.prod-btns { display: flex; gap: 6px; }
.prod-btn  {
  flex: 1; padding: 8px 4px; border-radius: 10px;
  border: none; font-family: 'Poppins', sans-serif;
  font-size: 10px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.2s; text-decoration: none;
}
.prod-btn svg { width: 12px; height: 12px; }
.btn-wa     { background: #25D366; color: #fff; }
.btn-wa:hover { background: #20bd5a; }
.btn-shopee { background: rgba(238,77,45,0.12); color: #EE4D2D; border: 1px solid rgba(238,77,45,0.2); }
.btn-shopee:hover { background: #EE4D2D; color: #fff; }

/* ── SKELETON ── */
.skel-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden; }
.skel {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* ── FOOTER ── */
.footer {
  text-align: center; margin-top: 36px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--section-border);
}
.footer-store { font-size: 12px; color: var(--footer-color); margin-bottom: 10px; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--footer-color);
  text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.8;
}
.footer-brand img { width: 16px; height: 16px; border-radius: 4px; opacity: 0.7; }
.footer-copy { font-size: 10px; color: var(--footer-color); margin-top: 6px; }

/* ── FLOATING WA ── */
.float-wa {
  position: fixed; bottom: 22px; right: 20px;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.38);
  z-index: 99; transition: transform 0.2s;
  text-decoration: none;
}
.float-wa:active { transform: scale(0.9); }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.show { opacity: 1; transform: translateY(0); }

@keyframes rotateBorder {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hidden { display: none !important; }
  
