/* Tressa first-visit skeleton — Facebook/Instagram style shape blocks
   Adapts to OS light/dark via prefers-color-scheme. */

:root {
  --sk-bg: #1a1a1a;
  --sk-block: #2a2a2a;
  --sk-block-strong: #333333;
  --sk-text: #3a3a3a;
  --sk-border: rgba(255,255,255,0.04);
  --sk-radius-sm: 8px;
  --sk-radius-md: 12px;
  --sk-radius-pill: 999px;
}

@media (prefers-color-scheme: light) {
  :root {
    --sk-bg: #ffffff;
    --sk-block: #e4e6eb;       /* FB light skeleton color */
    --sk-block-strong: #d8dadf;
    --sk-text: #c9ccd1;
    --sk-border: rgba(0,0,0,0.06);
  }
}

#skeleton-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--sk-bg);
  overflow: hidden;
  transition: opacity 350ms ease;
  opacity: 1;
  -webkit-font-smoothing: antialiased;
}
#skeleton-overlay.sk-hide {
  opacity: 0;
  pointer-events: none;
}

.sk-block {
  background: var(--sk-block);
  border-radius: var(--sk-radius-sm);
  animation: sk-pulse 1.6s ease-in-out infinite;
  display: block;
}
.sk-block.sk-card   { border-radius: var(--sk-radius-md); }
.sk-block.sk-circle { border-radius: 50%; }
.sk-block.sk-pill   { border-radius: var(--sk-radius-pill); }

@keyframes sk-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-block { animation: none; opacity: 0.7; }
}

.sk-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.sk-announce {
  width: 100%;
  height: 32px;
  background: var(--sk-block-strong);
  opacity: 0.6;
}

/* ==================== NAVBAR ==================== */
.sk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  width: 100%;
}
.sk-nav-logo { width: 110px; height: 26px; }
.sk-nav-right { display: flex; align-items: center; gap: 22px; }
.sk-nav-link  { width: 50px; height: 12px; }
.sk-nav-burger { width: 28px; height: 22px; }

/* Mobile nav-right: 2 small icons */
.sk-nav-icons-mobile { display: flex; gap: 10px; }
.sk-nav-icons-mobile .sk-block { width: 30px; height: 30px; border-radius: 6px; }

/* ==================== HOME — center hero stack ==================== */
.sk-home-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 18px;
  width: 100%;
}

/* Desktop hero pieces (matches screenshot 1) */
.sk-home-title-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 760px;
}
.sk-home-title-lines .sk-line-long {
  width: 100%;
  height: 22px;
  border-radius: 6px;
}
.sk-home-title-lines .sk-line-dashes {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}
.sk-home-title-lines .sk-line-dashes .sk-block {
  flex: 1;
  height: 14px;
  max-width: 90px;
  border-radius: 4px;
}

/* Big TRESSA title block */
.sk-home-bigtitle {
  width: min(720px, 80%);
  height: 130px;
  border-radius: 10px;
  background: var(--sk-block-strong);
}

/* small tagline */
.sk-home-tag { width: 220px; height: 14px; }

/* Buttons row: pill + 2 outlined */
.sk-home-btns {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.sk-home-btns .sk-btn-pill {
  width: 220px;
  height: 50px;
  border-radius: var(--sk-radius-pill);
  background: var(--sk-block-strong);
}
.sk-home-btns .sk-btn-outline {
  width: 200px;
  height: 50px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--sk-block);
  animation: sk-pulse 1.6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 14px;
  font-weight: 500;
}

/* description double-line */
.sk-home-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 480px;
  align-items: center;
  margin-top: 10px;
}
.sk-home-desc .sk-block { height: 12px; border-radius: 4px; }
.sk-home-desc .sk-d1 { width: 100%; }
.sk-home-desc .sk-d2 { width: 80%; }

/* social pills */
.sk-home-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.sk-home-social .sk-block {
  width: 110px;
  height: 34px;
  border-radius: var(--sk-radius-pill);
  background: var(--sk-block-strong);
}

/* slide dots */
.sk-home-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px 0 24px;
}
.sk-home-dots .sk-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sk-block);
}
.sk-home-dots .sk-dot.sk-active { width: 22px; border-radius: 4px; background: var(--sk-block-strong); }

/* footer line */
.sk-home-footer {
  border-top: 1px solid var(--sk-border);
  padding: 14px 0;
  display: flex;
  justify-content: center;
}
.sk-home-footer .sk-block { width: 220px; height: 10px; border-radius: 3px; }

/* ==================== STORE / TRACK (kept simple, dark+light aware) ==================== */
.sk-section-title { width: 180px; height: 20px; margin: 28px 24px 14px; }
.sk-cat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 24px;
}
.sk-cat-row .sk-block { width: 100%; height: 150px; }
.sk-product-grid {
  display: grid;
  gap: 16px;
  padding: 16px 24px 24px;
  grid-template-columns: repeat(4, 1fr);
}
.sk-product-card { display: flex; flex-direction: column; gap: 8px; }
.sk-product-card .sk-img   { width: 100%; height: 220px; }
.sk-product-card .sk-line1 { width: 80%; height: 14px; }
.sk-product-card .sk-line2 { width: 60%; height: 14px; }
.sk-product-card .sk-price { width: 40%; height: 16px; }

.sk-filter-row {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  align-items: center;
}
.sk-filter-row .sk-search { flex: 0 0 300px; height: 40px; }
.sk-filter-row .sk-sort   { width: 140px; height: 40px; }
.sk-filter-row .sk-filt   { width: 100px; height: 40px; }

.sk-track .sk-track-wrap {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sk-track .sk-h1   { width: 300px; height: 48px; }
.sk-track .sk-sub  { width: 340px; height: 18px; }
.sk-track .sk-search-row { display: flex; gap: 12px; }
.sk-track .sk-search-row .sk-input { flex: 1; max-width: 480px; height: 48px; border-radius: 12px; }
.sk-track .sk-search-row .sk-btn   { width: 120px; height: 48px; border-radius: 12px; }
.sk-track .sk-result {
  width: 100%;
  border-radius: 12px;
  background: var(--sk-block);
  opacity: 0.6;
  height: 280px;
}

/* ==================== MOBILE ==================== */
@media (max-width: 767px) {
  .sk-nav { padding: 12px 16px; }
  .sk-nav-logo { width: 100px; height: 22px; }
  .sk-nav-link { display: none; }

  .sk-home-center { padding: 16px; gap: 14px; justify-content: flex-start; padding-top: 18%; }
  .sk-home-bigtitle { width: 80%; height: 90px; }
  .sk-home-title-lines { max-width: 90%; }
  .sk-home-title-lines .sk-line-long { height: 18px; }
  .sk-home-title-lines .sk-line-dashes .sk-block { max-width: 36px; height: 10px; }

  .sk-home-btns { flex-direction: column; gap: 12px; width: 80%; }
  .sk-home-btns .sk-btn-pill,
  .sk-home-btns .sk-btn-outline { width: 100%; }

  .sk-home-desc { max-width: 90%; }
  .sk-home-social .sk-block { width: 90px; height: 30px; }

  .sk-cat-row { display: flex; overflow: hidden; padding: 0 16px; gap: 12px; }
  .sk-cat-row .sk-block { flex: 0 0 120px; height: 130px; }

  .sk-product-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px 16px; gap: 12px; }
  .sk-product-card .sk-img { height: 180px; }

  .sk-filter-row { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .sk-filter-row .sk-search,
  .sk-filter-row .sk-sort,
  .sk-filter-row .sk-filt { flex: none; width: 100%; }

  .sk-track .sk-track-wrap { padding: 24px 16px; }
  .sk-track .sk-h1, .sk-track .sk-sub { width: 100%; }
  .sk-track .sk-search-row { flex-direction: column; }
  .sk-track .sk-search-row .sk-input,
  .sk-track .sk-search-row .sk-btn { width: 100%; max-width: none; }
}
