@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --header-h: 50px;
  --nav-h: 50px;
}

* {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  box-sizing: border-box;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  background: #fff;
}

/* ============================================================
   HEADER — homepage only (logo + profile pic)
   ============================================================ */
header {
  height: var(--header-h);
  width: 100%;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  top: 0;
  position: fixed;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  margin-left: 10px;
  color: goldenrod;
  user-select: none;
}

.header-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 5px;
}

.search-btn, .profile-pic {
  height: 50px;
  width: 50px;
  border: none;
  color: white;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic img {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  border: 1px solid black;
  background: gray;
  object-fit: cover;
  display: block;
}

/* ============================================================
   PAGE HEADER — every other page (back arrow + title)
   Same position/height/colors as header so layout stays identical.
   ============================================================ */
.page-header {
  height: var(--header-h);
  width: 100%;
  background: black;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  top: 0;
  position: fixed;
  z-index: 1000;
  padding: 0 14px;
}

.page-header .back-btn {
  border: none;
  background: transparent;
  color: goldenrod;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-left: -6px;
}

.page-header .back-btn svg {
  width: 22px;
  height: 22px;
  stroke: goldenrod;
}

.page-header .page-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   MAIN — every page. Offsets the fixed header/page-header above
   and the fixed bottom nav below, so nothing gets covered.
   ============================================================ */
main {
  display: block;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: var(--nav-h);
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
nav {
  background: whitesmoke;
  height: var(--nav-h);
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 1000;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

nav li {
  flex: 1;
}

nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: goldenrod;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

a.active {
  font-weight: bold;
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.active .feather {
  fill: goldenrod;
  stroke: black;
  stroke-width: 0.5px;
}

/* ============================================================
   SKELETON LOADING — shared by every page (shop + admin).
   Usage: give any placeholder block class="skeleton" plus a
   width/height (inline style or a helper class below). The
   shimmer sweeps left-to-right on a loop until real content
   replaces the markup.
   ============================================================ */
@keyframes gv-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(100deg, #eaeaea 30%, #f6f6f6 45%, #f6f6f6 55%, #eaeaea 70%);
  background-size: 300% 100%;
  animation: gv-shimmer 1.3s ease-in-out infinite;
  border-radius: 8px;
  color: transparent !important;
  pointer-events: none;
}
.skeleton-line{ height: 12px; border-radius: 6px; }
.skeleton-circle{ border-radius: 50%; }
