/* ============================================================
   Mr. Bizo Shop — design tokens
   ============================================================ */
:root {
  --ink: #0F2A4A;       /* brand navy from the logo */
  --ink-soft: #3E5673;
  --paper: #FBF5EB;     /* cream from the logo banner */
  --linen: #F1E5CE;
  --line: #DECDA6;
  --saffron: #D99B44;   /* gold/orange from the logo border */
  --saffron-deep: #B87A2A;
  --berry: #A21300;     /* tomato red from the logo ribbon */
  --basil: #3F6B4A;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius-s: 3px;
  --max-width: 780px;
}

@font-face {
  font-family: 'Fraunces';
  src: local('Georgia');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0 16px;
  border-bottom: 4px solid var(--saffron);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.2px;
}

.brand-tag {
  margin: 0;
  color: var(--linen);
  font-size: 0.85rem;
}

.share-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
   Install banner
   ============================================================ */
.install-banner {
  background: var(--saffron);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.install-banner[hidden] { display: none; }

.install-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.btn-small { padding: 7px 14px; font-size: 0.82rem; }

.install-dismiss {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  padding: 2px 6px;
}

/* ============================================================
   Share modal
   ============================================================ */
.share-card { text-align: center; max-width: 340px; }
.qr-image { width: 180px; height: 180px; margin: 8px auto 0; display: block; }

/* ============================================================
   Popup
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: fade-in 0.25s ease-out;
}

.popup-overlay[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .popup-overlay { align-items: center; }
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.popup-card {
  background: var(--paper);
  border-top: 4px solid var(--saffron);
  width: 100%;
  max-width: 460px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px 22px 22px;
  position: relative;
  animation: rise-up 0.3s ease-out;
}

@media (min-width: 640px) {
  .popup-card { border-top: none; border-left: 4px solid var(--saffron); }
}

@keyframes rise-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
}

.popup-eyebrow {
  margin: 0 0 6px;
  color: var(--saffron-deep);
  font-weight: 600;
  font-size: 0.85rem;
}

.popup-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 10px;
  line-height: 1.25;
}

.popup-card p#popup-desc {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 18px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--saffron);
  color: var(--ink);
}

.btn-store {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  padding: 8px 12px;
}

.btn-store.is-best {
  background: var(--basil);
  border-color: var(--basil);
  color: var(--white);
}

/* Store brand accents — a subtle color stripe, not a full logo */
.btn-store.store-amazon   { border-left: 4px solid #FF9900; }
.btn-store.store-walmart  { border-left: 4px solid #0071CE; }
.btn-store.store-target   { border-left: 4px solid #CC0000; }
.btn-store.store-ebay     { border-left: 4px solid #E53238; }
.btn-store.store-homedepot { border-left: 4px solid #F96302; }
.btn-store.is-best.store-amazon,
.btn-store.is-best.store-walmart,
.btn-store.is-best.store-target,
.btn-store.is-best.store-ebay,
.btn-store.is-best.store-homedepot { border-left: 4px solid var(--white); }

/* ============================================================
   Filters
   ============================================================ */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 6px;
}

.search-row {
  padding: 22px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#search-input { flex: 1 1 180px; }

.kitchen-cta {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.kitchen-cta:hover { background: var(--saffron-deep); }

/* ============================================================
   Interactive kitchen browse
   ============================================================ */
.kitchen-card {
  background: var(--paper);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid var(--saffron);
  padding: 22px 20px 24px;
}

#kitchen-svg { width: 100%; height: auto; display: block; margin-top: 6px; }

.kitchen-photo-wrap { position: relative; width: 100%; margin-top: 8px; }
.kitchen-photo { width: 100%; height: auto; display: block; border-radius: 4px; }

.kitchen-hotspot {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--saffron);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 0 rgba(217, 155, 68, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  animation: pulse-glow 2s infinite;
}

.kitchen-hotspot:hover, .kitchen-hotspot:focus { background: var(--berry); }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(217, 155, 68, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(217, 155, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 155, 68, 0); }
}

.kitchen-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.kitchen-hotspot:hover .kitchen-label,
.kitchen-hotspot:focus .kitchen-label { opacity: 1; }

@media (max-width: 480px) {
  .kitchen-hotspot { width: 26px; height: 26px; font-size: 0.75rem; }
}

.kitchen-hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .search-row { padding: 16px 14px 0; flex-direction: column; }
  #search-input { flex: none; width: 100%; }
  .kitchen-cta { width: 100%; }
  .kitchen-card { padding: 16px 14px 20px; }
}

#search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-s);
}

#search-input::placeholder { color: var(--ink-soft); }
#search-input:focus { outline: 2px solid var(--saffron); outline-offset: 1px; }

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  cursor: pointer;
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Product list
   ============================================================ */
.product-list {
  padding: 10px 20px 40px;
  display: flex;
  flex-direction: column;
}

.loading-msg, .empty-msg {
  color: var(--ink-soft);
  padding: 30px 0;
}

.product-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.product-card:first-child { padding-top: 6px; }

.product-thumb {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 4px;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.stars { color: var(--saffron-deep); letter-spacing: 1px; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--berry);
}

.price-old {
  text-decoration: line-through;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.price-discount {
  background: var(--berry);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-s);
}

.verdict {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 6px 0 12px;
  line-height: 1.45;
}

.store-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: var(--linen);
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
}

.site-footer p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 6px;
}

.updated-note { font-style: italic; }
.copyright { font-size: 0.72rem; opacity: 0.75; margin-top: 8px; }

/* ============================================================
   Product card — clickable
   ============================================================ */
.product-card { cursor: pointer; }

.btn-details {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* ============================================================
   Product detail modal
   ============================================================ */
.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
}

.detail-overlay[hidden] { display: none; }

.detail-card {
  background: var(--paper);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-top: 4px solid var(--saffron);
  padding: 26px 24px 30px;
}

.detail-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.detail-category {
  display: inline-block;
  background: var(--linen);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.expert-box {
  background: var(--linen);
  border-left: 3px solid var(--saffron);
  padding: 12px 14px;
  margin: 14px 0;
}

.expert-label {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--saffron-deep);
  font-size: 0.82rem;
}

.expert-box p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.compare-label {
  font-weight: 600;
  font-size: 0.85rem;
  margin: 18px 0 8px;
  color: var(--ink-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table tr { border-bottom: 1px solid var(--line); }

.compare-table td { padding: 10px 4px; font-size: 0.88rem; }

.compare-table td:first-child { font-weight: 600; }

.compare-price { font-weight: 600; color: var(--berry); }

.is-best-row { background: rgba(63, 107, 74, 0.08); }

.best-tag {
  background: var(--basil);
  color: var(--white);
  font-size: 0.68rem;
  padding: 2px 6px;
  margin-left: 6px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
  .product-card { grid-template-columns: 76px 1fr; gap: 12px; }
  .product-thumb { width: 76px; height: 76px; }

  .brand-logo { height: 46px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { font-size: 0.78rem; }
  .site-header { padding: 12px 0 14px; }

  .wrap { padding: 0 14px; }

  .product-card h3 { font-size: 0.98rem; }
  .price-now { font-size: 1.15rem; }
  .price-old { font-size: 0.82rem; }
  .btn-store { font-size: 0.74rem; padding: 7px 9px; }
  .btn-details { font-size: 0.74rem; padding: 7px 9px; }
  .store-grid { gap: 6px; }

  .filter-row { padding: 16px 14px 4px; }
  .chip { font-size: 0.78rem; padding: 6px 12px; }

  .detail-card { padding: 20px 16px 24px; max-height: 92vh; }
  .detail-title { font-size: 1.15rem; }
  .compare-table td { font-size: 0.82rem; padding: 8px 3px; }
  .compare-table .btn-store { font-size: 0.72rem; padding: 6px 8px; }

  .popup-overlay { align-items: flex-end; padding: 0; }
  .popup-card { max-height: 78vh; padding: 20px 18px 20px; }
  .popup-card h2 { font-size: 1.25rem; }
  .qr-image { width: 150px; height: 150px; }
}
