/* ==========================================
   LINKify — Index Page Styles
   ========================================== */

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

html { min-height: 100%; }
body.index-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  --idx-accent: #FF6B35;
  --idx-accent-rgb: 255, 107, 53;
  --idx-bg1: #0d0d1a;
  --idx-bg2: #131325;
  --idx-bg3: #0a0a18;
  --idx-card: rgba(255,255,255,0.06);
  --idx-border: rgba(255,255,255,0.11);
  --idx-text: #ffffff;
  --idx-text-muted: rgba(255,255,255,0.55);
  --idx-footer: rgba(255,255,255,0.30);
  --idx-section-line: rgba(255,255,255,0.07);
  background-color: #0d0d1a;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(var(--idx-accent-rgb), 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(100,80,200,0.12) 0%, transparent 55%);
  font-family: 'Poppins', sans-serif;
  color: var(--idx-text);
  overflow-x: hidden;
}

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.13) 50%,rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* LAYOUT */
.page-wrap { flex: 1; display: flex; flex-direction: column; }
.index-page .container { max-width: 520px; margin: 0 auto; padding: 20px 16px 110px; flex: 1; width: 100%; }

/* TOP BAR */
.top-bar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 20px; }
.share-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16); border-radius: 13px; color: var(--idx-text); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.18s, transform 0.15s; }
.share-btn:hover { background: rgba(255,255,255,0.14); }
.share-btn:active { transform: scale(0.9); }

/* HERO */
.hero { text-align: center; margin-bottom: 28px; }
.logo-wrapper { width: 120px; height: 120px; border-radius: 50%; padding: 4px; background: var(--idx-accent); margin: 0 auto 18px; box-shadow: 0 0 0 6px rgba(var(--idx-accent-rgb),0.18), 0 8px 32px rgba(0,0,0,0.35); }
.logo-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(0,0,0,0.4); background-color: var(--idx-bg3); }
.store-name { font-size: 26px; font-weight: 800; margin-bottom: 7px; text-shadow: 0 2px 16px rgba(0,0,0,0.5); text-transform: lowercase; color: var(--idx-text); letter-spacing: -0.5px; }
.store-desc { color: var(--idx-text-muted); font-size: 13px; line-height: 1.55; max-width: 300px; margin: 0 auto; }

/* SECTION HEADER */
.section-header { margin-bottom: 14px; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--idx-text-muted); display: block; }
.section-title::after { content: ''; display: block; width: 36px; height: 3px; background: linear-gradient(90deg, var(--idx-accent), #FFD700); border-radius: 2px; margin-top: 7px; }

/* SOCIAL ICONS */
.social-section { margin-bottom: 22px; display: flex; justify-content: center; }
.social-icons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.social-icon-btn {
  width: 50px; height: 50px;
  border-radius: 15px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.80);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 8px rgba(0,0,0,0.2);
}
.social-icon-btn:hover { background: var(--social-color, rgba(255,255,255,0.18)); color: #fff; transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,0.3); border-color: transparent; }
.social-icon-btn:active { transform: scale(0.9); }

/* PLATFORM BUTTONS */
.platform-section { margin-bottom: 24px; }
.platform-btn {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 15px 18px; border-radius: 18px; border: none;
  color: #fff; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; margin-bottom: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
  position: relative; overflow: hidden; letter-spacing: 0.1px;
}
.platform-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.platform-btn:active { transform: scale(0.98); }
.platform-btn::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.platform-btn:hover::before { left: 130%; }

.wa-btn     { background: linear-gradient(135deg,#25D366,#128C7E); box-shadow: 0 6px 20px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.2); }
.shopee-btn { background: linear-gradient(135deg,#FF6633,#EE4D2D); box-shadow: 0 6px 20px rgba(238,77,45,0.35), 0 2px 6px rgba(0,0,0,0.2); }
.tokped-btn { background: linear-gradient(135deg,#03AC0E,#028a0b); box-shadow: 0 6px 20px rgba(3,172,14,0.30), 0 2px 6px rgba(0,0,0,0.2); }

/* ICON BOX — kaca bervolume */
.icon-box {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.32);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.3), 0 3px 10px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
}
.icon-box::before {
  content: ''; position: absolute; top: -40%; left: -40%;
  width: 55%; height: 55%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* CATALOG */
.catalog-section { margin-bottom: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-span-all { grid-column: 1 / -1; }
.product-card { background: var(--idx-card); border: 1px solid var(--idx-border); border-radius: 18px; overflow: hidden; transition: transform 0.22s ease, box-shadow 0.22s ease; text-decoration: none; color: var(--idx-text); box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.product-img { width: 100%; height: 160px; object-fit: cover; background-color: var(--idx-bg2); display: block; }
.product-info { padding: 12px; }
.product-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--idx-text); }
.product-price { font-size: 15px; font-weight: 800; color: var(--idx-accent); background: rgba(var(--idx-accent-rgb),0.12); display: inline-block; padding: 2px 9px; border-radius: 7px; }
.skeleton-box { background: var(--idx-card); border: 1px solid var(--idx-border); border-radius: 18px; overflow: hidden; }
.out-of-stock { position: absolute; inset: 0; background: rgba(0,0,0,0.62); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #fff; }

/* PRODUCT BUTTONS */
.prod-btn { flex: 1; padding: 8px 4px; border-radius: 11px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; transition: filter 0.15s ease, transform 0.12s; }
.prod-btn:active { filter: brightness(0.85); transform: scale(0.95); }
.prod-btn-wa     { background: linear-gradient(135deg,#25D366,#1aaa55); color: #fff; box-shadow: 0 2px 8px rgba(37,211,102,0.3); }
.prod-btn-shopee { background: linear-gradient(135deg,#FF6633,#EE4D2D); color: #fff; box-shadow: 0 2px 8px rgba(238,77,45,0.3); }

/* KATEGORI FILTER */
.kategori-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; scrollbar-width: none; -ms-overflow-style: none; }
.kategori-filter::-webkit-scrollbar { display: none; }
.kat-btn { flex-shrink: 0; padding: 6px 16px; border-radius: 99px; border: 1.5px solid var(--idx-border); background: transparent; color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.18s ease; white-space: nowrap; font-family: 'Poppins', sans-serif; }
.kat-btn:hover { border-color: var(--idx-accent); color: var(--idx-accent); }
.kat-btn.active { background: var(--idx-accent); border-color: var(--idx-accent); color: #fff; }

/* UNGGULAN */
.unggulan-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.unggulan-divider { height: 1px; background: var(--idx-border); margin: 8px 0 14px; }

/* BADGE */
.badge-diskon { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#E53E3E,#C53030); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; box-shadow: 0 2px 8px rgba(229,62,62,0.4); }
.badge-unggulan { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.60); color: #F6C90E; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 7px; backdrop-filter: blur(4px); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.harga-coret { font-size: 11px; color: rgba(255,255,255,0.35); text-decoration: line-through; font-weight: 400; }

/* FOOTER */
.footer { text-align: center; padding: 24px 16px 20px; margin-top: auto; border-top: 1px solid var(--idx-section-line); font-size: 12px; color: var(--idx-footer); }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.55; color: var(--idx-footer); }
.footer-brand img { width: 16px; height: 16px; border-radius: 4px; opacity: 0.7; }
.footer-copy { font-size: 11px; opacity: 0.45; margin-top: 4px; }

/* FLOATING WA */
.floating-wa { position: fixed; bottom: 24px; right: 20px; width: 56px; height: 56px; background: linear-gradient(135deg,#25D366,#128C7E); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(37,211,102,0.40), 0 2px 8px rgba(0,0,0,0.2); z-index: 100; transition: transform 0.2s ease; }
.floating-wa:hover { transform: scale(1.08); }
.floating-wa:active { transform: scale(0.9); }

/* UTILITIES */
.hidden { display: none !important; }
.jelly-click { transition: transform 0.12s cubic-bezier(0.4,0,0.2,1); }
.jelly-click:active { transform: scale(0.88); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

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

/* TEMPLATE PHOTO */
#tpl-bg-layer::after { content: ''; position: absolute; inset: 0; background: var(--tpl-overlay, rgba(0,0,0,0.55)); pointer-events: none; }

body.index-page[data-template="forest"],
body.index-page[data-template="ocean"],
body.index-page[data-template="aurora"],
body.index-page[data-template="desert"],
body.index-page[data-template="sakura"] { background-color: transparent !important; background-image: none !important; --idx-card: rgba(0,0,0,0.40); --idx-border: rgba(255,255,255,0.14); }

body.index-page[data-template="forest"] .product-card,
body.index-page[data-template="ocean"] .product-card,
body.index-page[data-template="aurora"] .product-card,
body.index-page[data-template="desert"] .product-card,
body.index-page[data-template="sakura"] .product-card { background: rgba(0,0,0,0.48); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.13); }

body.index-page[data-template="forest"] .social-icon-btn,
body.index-page[data-template="ocean"] .social-icon-btn,
body.index-page[data-template="aurora"] .social-icon-btn,
body.index-page[data-template="desert"] .social-icon-btn,
body.index-page[data-template="sakura"] .social-icon-btn { background: rgba(0,0,0,0.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,0.18); }

/* Platform btn template — warna tetap, tambah blur */
body.index-page[data-template="forest"] .platform-btn,
body.index-page[data-template="ocean"] .platform-btn,
body.index-page[data-template="aurora"] .platform-btn,
body.index-page[data-template="desert"] .platform-btn,
body.index-page[data-template="sakura"] .platform-btn { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

body.index-page[data-template="forest"] .wa-btn,body.index-page[data-template="ocean"] .wa-btn,body.index-page[data-template="aurora"] .wa-btn,body.index-page[data-template="desert"] .wa-btn,body.index-page[data-template="sakura"] .wa-btn { background: linear-gradient(135deg,#25D366,#128C7E); }
body.index-page[data-template="forest"] .shopee-btn,body.index-page[data-template="ocean"] .shopee-btn,body.index-page[data-template="aurora"] .shopee-btn,body.index-page[data-template="desert"] .shopee-btn,body.index-page[data-template="sakura"] .shopee-btn { background: linear-gradient(135deg,#FF6633,#EE4D2D); }
body.index-page[data-template="forest"] .tokped-btn,body.index-page[data-template="ocean"] .tokped-btn,body.index-page[data-template="aurora"] .tokped-btn,body.index-page[data-template="desert"] .tokped-btn,body.index-page[data-template="sakura"] .tokped-btn { background: linear-gradient(135deg,#03AC0E,#028a0b); }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-up { transition: none; opacity: 1; transform: none; }
  .platform-btn::before { display: none; }
  .skeleton { animation: none; }
}

/* RESPONSIVE — Tablet */
@media (min-width: 600px) {
  .index-page .container { padding: 32px 24px 120px; }
  .logo-wrapper { width: 136px; height: 136px; }
  .store-name { font-size: 30px; }
  .product-grid { gap: 16px; }
  .product-img { height: 180px; }
  .platform-btn { font-size: 16px; padding: 17px 22px; }
  .icon-box { width: 48px; height: 48px; border-radius: 14px; }
}

/* RESPONSIVE — Desktop */
@media (min-width: 900px) {
  .index-page .container { padding: 40px 32px 120px; max-width: 560px; }
  .product-img { height: 200px; }
  .store-name { font-size: 32px; }
}

/* RESPONSIVE — HP kecil */
@media (max-width: 380px) {
  .index-page .container { padding: 14px 12px 100px; }
  .store-name { font-size: 21px; }
  .platform-btn { font-size: 13px; padding: 13px 14px; gap: 12px; }
  .icon-box { width: 38px; height: 38px; border-radius: 11px; }
  .product-img { height: 130px; }
  .product-name { font-size: 12px; }
  .product-price { font-size: 13px; }
  .prod-btn { font-size: 10px; padding: 7px 2px; }
  .social-icon-btn { width: 44px; height: 44px; border-radius: 13px; }
  .logo-wrapper { width: 105px; height: 105px; }
}
