/* Intel Cottage — monochrome export catalog
   Palette is strictly neutral: off-white page, white surfaces, hairline gray, charcoal type and buttons.
*/
:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --line: #EAEAEA;
  --text: #1A1A1A;
  --muted: #5A5A5A;
  --soft: #8A8A8A;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Top info strip */
.infostrip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 8px 16px;
}
.infostrip span + span::before {
  content: "·";
  margin: 0 0.75em;
  color: var(--soft);
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand {
  font-weight: 650;
  letter-spacing: 0.04em;
  font-size: 17px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-weight: 400;
  letter-spacing: 0.16em;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link, .nav-drop > button.nav-link {
  background: none;
  border: 0;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}
.nav-link[aria-current="page"] { font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 50;
}
.nav-drop.open .nav-drop-panel,
.nav-drop:hover .nav-drop-panel { display: block; }
.nav-drop-panel a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
}
.nav-drop-panel a:hover { background: var(--bg); }
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--text);
  background: var(--surface);
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cart-count {
  min-width: 1.4em;
  height: 1.4em;
  border: 1px solid var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 18em;
}
.hero p { margin: 0; max-width: 40em; color: var(--muted); font-size: 17px; }
.hero-note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* Sections */
.section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 42em; }

/* Featured Chinyoti editorial */
.craft {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.craft img { width: 100%; height: 100%; object-fit: cover; max-height: 460px; }
.craft-copy { padding: 32px 32px 32px 0; }
.craft-copy h2 { margin: 0 0 12px; font-size: 22px; font-weight: 550; }
.craft-copy p { margin: 0 0 12px; color: var(--muted); }
.craft-copy p:last-child { margin-bottom: 0; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 13px;
}
.filter-btn[aria-pressed="true"],
.filter-btn.is-on {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* Product grid / cards — name ABOVE the image */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
}
.card-name {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 4px;
  line-height: 1.3;
}
.card-meta { font-size: 12px; color: var(--soft); margin: 0 0 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.card-image {
  background: #FFFFFF;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; background: #FFFFFF; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.price { font-size: 15px; font-weight: 550; }
.card-actions { display: flex; gap: 8px; }

.btn {
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--surface);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
}
.btn:hover { opacity: 0.86; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.empty-cat {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  background: var(--surface);
  padding: 36px 24px;
  color: var(--muted);
  text-align: center;
}

/* Modal */
.modal-back, .drawer-back {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.72);
  z-index: 60;
}
.modal-back.open, .drawer-back.open { display: block; }
.modal {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}
.modal.open { display: flex; }
.modal-card {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  position: relative;
}
.modal-close, .drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 36px;
  height: 36px;
}
.modal-name { margin: 0 0 4px; font-size: 22px; font-weight: 550; }
.modal-image { background: #FFFFFF; border: 1px solid var(--line); margin: 16px 0; }
.modal-image img { width: 100%; max-height: 480px; object-fit: contain; background: #FFFFFF; }
.modal-desc { color: var(--muted); margin: 0 0 8px; }
.modal-price { font-size: 20px; font-weight: 550; margin: 12px 0 16px; }
.delivery-flag { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }

/* Cart drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 80;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.drawer.open { display: flex; }
.drawer-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 550; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; }
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line img { width: 72px; height: 54px; object-fit: contain; background: #FFF; border: 1px solid var(--line); }
.cart-line h3 { margin: 0 0 4px; font-size: 14px; font-weight: 550; }
.qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.cart-remove { border: 0; background: none; font-size: 12px; color: var(--muted); text-decoration: underline; padding: 0; }
.subtotal { display: flex; justify-content: space-between; font-size: 16px; font-weight: 550; margin-bottom: 12px; }
.cart-empty { color: var(--muted); padding: 24px 0; }

/* Checkout / views */
.view { display: none; }
.view.on { display: block; }
.checkout { padding: 48px 0 80px; }
.checkout h1 { font-size: 28px; font-weight: 550; margin: 0 0 8px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  margin-top: 28px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; }
.field input:not([type="radio"]):not([type="checkbox"]),
.field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
}
.field textarea { min-height: 90px; resize: vertical; }
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
}
.pay-options input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: #1A1A1A;
}
.pay-options strong { display: block; color: var(--text); font-weight: 550; font-size: 14px; }
.pay-options span { color: var(--muted); font-size: 13px; display: block; font-weight: 400; }
.summary { border: 1px solid var(--line); background: var(--surface); padding: 20px; }
.summary h2 { margin: 0 0 14px; font-size: 16px; font-weight: 550; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.form-error { color: var(--text); font-size: 13px; margin: 0 0 12px; display: none; }
.form-error.on { display: block; }

.confirm { padding: 80px 0; text-align: center; max-width: 36em; margin: 0 auto; }
.confirm h1 { font-size: 28px; font-weight: 550; }
.order-id { font-size: 18px; letter-spacing: 0.04em; margin: 16px 0; }
.confirm p { color: var(--muted); }

/* Construction page */
.construction { padding: 72px 0 100px; max-width: 42em; }
.construction h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 550; letter-spacing: -0.02em; }
.construction p { color: var(--muted); font-size: 17px; }

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .craft, .checkout-grid { grid-template-columns: 1fr; }
  .craft-copy { padding: 20px; }
  .hero { padding: 40px 0 32px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav { position: static; }
  .header-inner { position: relative; }
  .infostrip { font-size: 11px; letter-spacing: 0.04em; }
}
