/* RESET */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}
img { display: block; max-width: 100%; }

/* APP */
#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

/* HEADER */
.header {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #006bb6;
  z-index: 10;
}
.logo { height: 28px; }



/* HERO */
.hero {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.hero h1 { font-size: 18px; margin: 0 0 6px; }
.hero p { font-size: 14px; margin: 0; color: #475569; }

/* PRODUCT LIST */
.product-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* PRODUCT CARD */
.product-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.product-image {
  width: 110px;
  display: flex;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-name { font-size: 15px; font-weight: 600; }
.product-model { font-size: 12px; color: #64748b; }
.product-price { font-size: 16px; font-weight: 700; margin-top: 4px; }

.view-btn {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #0f172a;
  background: #fff;
  font-size: 14px;
}

/* FOOTER */
.footer {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 50; }
.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.5);
}
.modal-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
}

/* IMAGE SLIDER */
.image-slider {
  height: 220px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.image-slider img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* IMAGE VIEWER */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
}

/* when visible */
.image-viewer:not(.hidden) {
  display: flex;
}
.image-viewer img {
  max-width: 95%;
  max-height: 90%;
}
.viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  background: rgba(0,0,0,.6);
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
}
