:root {
  --ink: #111111;
  --ink-soft: #666666;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --line: #e5e5e5;
  --accent: #000000;
  --accent-deep: #262626;
  --accent-soft: #f2f2f2;
  --good: #111111;
  --good-bg: #f0f0f0;
  --warn: #444444;
  --warn-bg: #e8e8e8;
  --neutral: #8a8a8a;
  --neutral-bg: #f2f2f2;
  --danger: #b3261e;
  --danger-bg: #fbe8e4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

img { max-width: 100%; display: block; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #185f3c; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* Announcement bar (rotating messages) */
.announce {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
  height: 36px;
  position: relative;
}
.announce .mono { color: #d9d9d9; }
.announce-slide {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.announce-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 64px;
}
@media (max-width: 900px) {
  .header-top { padding: 14px 24px; flex-wrap: wrap; gap: 12px; }
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  flex-shrink: 0;
}
.brand span { color: var(--accent); }

.search-bar {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  max-width: 480px;
  background: var(--paper-raised);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.search-bar button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
  align-self: stretch;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-bar button:hover { background: var(--accent-deep); }
@media (max-width: 900px) {
  .search-bar { order: 3; max-width: 100%; flex: 1 1 100%; }
}

.header-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 64px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}
.header-nav a { color: var(--ink-soft); white-space: nowrap; }
.header-nav a.active { color: var(--ink); }
@media (max-width: 900px) {
  .header-nav { padding: 10px 24px; gap: 22px; }
}

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.phone-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
@media (max-width: 700px) { .phone-chip { display: none; } }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px; color: var(--ink-soft); padding: 20px 0 0;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent); }

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip > div {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 40px; border-right: 1px solid var(--line);
}
.trust-strip > div:last-child { border-right: none; }
.trust-strip .t-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.trust-strip .t-sub { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(2) { border-right: none; }
}

/* Product card */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-media {
  position: relative; background: #f0f0f0; height: 170px;
  display: flex; align-items: center; justify-content: center;
}
.grade-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 2px;
}
.grade-a { background: var(--good-bg); color: var(--good); }
.grade-b { background: var(--warn-bg); color: var(--warn); }
.grade-c { background: var(--neutral-bg); color: var(--neutral); }
.grade-pending { background: #f2f2f2; color: var(--ink-soft); }
.price-request { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.card-specs { font-size: 12px; color: var(--ink-soft); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price-old { font-size: 12.5px; color: var(--ink-soft); text-decoration: line-through; }
.price-new { font-size: 19px; font-weight: 700; color: var(--accent-deep); }
.card-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
.card-link:hover .card-title { color: var(--accent-deep); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

/* Generic responsive layout grids used across pages */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 76px 0; gap: 56px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 44px 0; gap: 32px; }
}

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: flex-start; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-layout aside { position: static !important; }
}

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-layout > div:first-child { position: static !important; }
}

.about-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.about-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .about-stats { grid-template-columns: 1fr; }
  .about-steps { grid-template-columns: 1fr 1fr; }
}

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.budget-tile { color: inherit; border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }

html, body { max-width: 100%; overflow-x: hidden; }

/* Placeholder laptop icon */
.laptop-icon svg { display: block; }

/* Footer */
footer.site {
  background: var(--ink);
  color: #c7c7c7;
  padding: 56px 64px 0;
}
footer.site a { color: #c7c7c7; }
footer.site a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
footer .f-brand { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: #fff; }
footer .f-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
footer .f-label { font-size: 11px; color: #8a8a8a; margin-bottom: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #8a8a8a;
}
.footer-bottom a.footer-admin-link { color: #8a8a8a; font-size: 11px; }
.footer-bottom a.footer-admin-link:hover { color: #c7c7c7; }
@media (max-width: 900px) {
  footer.site { padding: 40px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* WhatsApp floating bubble */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1f7a4d; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.wa-float:hover { background: #185f3c; }

/* Section spacing helpers */
.section { padding: 56px 0; }
.section-tight { padding: 40px 0; }

/* Filter sidebar */
.filter-label { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.filter-check {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px; cursor: pointer;
}
.filter-check span.count { color: var(--ink-soft); font-size: 12.5px; }
.filter-check input { accent-color: var(--accent); }
.filter-check.is-disabled { color: var(--ink-soft); cursor: default; opacity: 0.7; }

.price-readout {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 14px;
}
.range-slider { position: relative; height: 28px; }
.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  top: 10px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
}
.range-slider input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--line);
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}
.range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer;
}

/* Header icon buttons (wishlist/cart) */
.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border-radius: 3px;
}
.icon-btn:hover { background: var(--paper-raised); color: var(--accent-deep); }
.icon-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* Category icon row (shop-by-category, beefurb-style structural pattern) */
.category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.category-tile:hover { border-color: var(--accent); color: inherit; }
.category-tile .cat-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 50%;
}
.category-tile .cat-label { font-family: 'Fraunces', serif; font-weight: 600; font-size: 15px; }
.category-tile .cat-count { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .category-row { grid-template-columns: repeat(2, 1fr); }
}

/* Section header with title + "View All" link (beefurb-style pattern) */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-head .view-all {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Secondary promo tiles (homepage) */
.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.promo-tile {
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  min-height: 150px;
  justify-content: flex-end;
}
.promo-tile .promo-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.promo-tile .promo-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; line-height: 1.2; }
.promo-tile .promo-cta { font-size: 13px; font-weight: 600; text-decoration: underline; margin-top: 4px; }
.promo-tile.promo-a { background: linear-gradient(135deg, #1a1a1a, #3d3d3d); }
.promo-tile.promo-b { background: linear-gradient(135deg, #0d0d0d, #333333); }
.promo-tile.promo-c { background: linear-gradient(135deg, #262626, #4d4d4d); }
@media (max-width: 860px) {
  .promo-row { grid-template-columns: 1fr; }
}

/* Shop page grid/list toggle */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.view-toggle button {
  background: var(--paper-raised);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.is-active { background: var(--accent); color: #fff; }
.grid-4.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.grid-4.is-list-view .card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}
.grid-4.is-list-view .card-media { height: 100px; }
.grid-4.is-list-view .card-media svg { width: 70px; height: auto; }

/* Cart & checkout layout */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: flex-start; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-layout > div:last-child { position: static !important; }
}
.cart-item { flex-wrap: wrap; }
@media (max-width: 560px) {
  .cart-item { flex-direction: column; align-items: flex-start; }
}

/* ---- Product configurator (RAM / SSD / add-ons) ---- */
.configurator {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-raised);
  padding: 20px;
}

.config-group + .config-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.config-group-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.config-group-help {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.4;
}

.config-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.config-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.config-tile:hover {
  border-color: var(--accent);
}

.config-tile.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.config-tile-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.config-tile-delta {
  font-size: 12px;
  color: var(--ink-soft);
}

.config-tile.is-selected .config-tile-delta {
  color: var(--accent-deep);
}

.config-addons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.config-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.config-addon-row:last-child {
  border-bottom: none;
}

.config-addon-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.config-addon-input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.config-addon-delta {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Product photos + stock badge (live catalog) ---------- */
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stock-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.stock-in { background: var(--good-bg); color: var(--good); }
.stock-out { background: var(--danger-bg); color: var(--danger); }

/* ---------- Homepage banner carousel ---------- */
.banner-carousel {
  position: relative; height: 420px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #262626, #0a0a0a);
}
.banner-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  display: flex; align-items: center; justify-content: center;
}
.banner-slide.is-active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.banner-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4);
  border: none; padding: 0; cursor: pointer;
}
.banner-dot.is-active { background: #fff; }

/* ---------- Product detail: image gallery ---------- */
.gallery-main {
  position: relative; background: #f0f0f0; border: 1px solid var(--line);
  border-radius: 6px; height: 380px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.gallery-thumb {
  width: 56px; height: 56px; border-radius: 4px; overflow: hidden;
  border: 2px solid var(--line); background: #f0f0f0; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--accent); }
.gallery-thumb-label {
  font-size: 9px; text-align: center; color: var(--ink-soft); margin-top: 2px;
}

/* ---------- Product detail: stock line ---------- */
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.stock-line .stock-in { position: static; }
.stock-line .stock-out { position: static; }
