:root { --ink:#2f2a26; --brand:#6B4C3B; --card:#c6e2c6; --cream:#e6d7c8; }

/* =============== RESET / BASE =============== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--ink); background:#fff; }
a { color: inherit; text-decoration: none; }

/* =============== HEADER / TITLES =============== */
header { text-align:center; padding:18px 12px 8px; }
.dd-logo { max-width:80px; height:auto; display:block; margin:0 auto 6px; }
h1 { text-align:center; margin-top:20px; color:var(--brand); }
.sub { text-align:center; color:#7a6a5e; margin: 6px 0 16px; font-size:.95rem; }

/* =============== NAVBAR =============== */
.navbar {
  background:var(--cream);
  border-top:1px solid #d9c6b5;
  border-bottom:1px solid #d9c6b5;
  position: relative;
  z-index: 500;
}
.navbar .nav-links{
  margin:0; padding:10px 12px;
  display:flex; align-items:center; flex-wrap:wrap;
  gap:14px; list-style:none; justify-content:center;
}
.navbar .nav-links > li { display:inline-flex; }
.navbar .nav-links a{
  display:inline-block; text-decoration:none;
  color:var(--brand); font-weight:600; font-size:16px;
  padding:8px 10px; border-radius:6px;
}
.navbar .nav-links a:hover,
.navbar .nav-links a:focus { background:rgba(0,0,0,.06); outline:none; }

/* Small rounded “Product List” pill INSIDE the navbar */
.nav-card-item{ margin-left:6px; }
.nav-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height: 34px; padding: 0 14px;
  background: var(--cream); color: var(--brand);
  border: 1px solid #d9c6b5; border-radius: 12px;
  font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.08);
  white-space: nowrap; line-height: 1; text-decoration: none;
  transition: transform .08s ease, box-shadow .18s ease, background-color .18s ease;
}
.nav-pill:hover{ background: #efe2d4; box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); }

/* =============== LAYOUT WRAPPER =============== */
.wrap { max-width:1200px; margin:0 auto; padding:10px 16px; }

/* =============== PRODUCT GRID / CARDS =============== */
.product-list {
  display:flex; flex-wrap:wrap; justify-content:center; gap:20px; padding:20px;
}
.product-card {
  background:var(--card);
  border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,.1);
  padding:20px; width:240px;
  text-align:center; cursor:pointer;
  font-weight:bold;
  transition:transform .2s, box-shadow .2s;
  display:flex; flex-direction:column;
}
.product-card:hover { transform:scale(1.03); box-shadow:0 8px 18px rgba(0,0,0,.15); }
.product-card .btn {
  margin-top:8px; background:var(--brand); color:#fff;
  border:0; padding:10px 12px; border-radius:10px; font-weight:800; cursor:pointer;
}

/* =============== MODALS =============== */
.overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); display:none; z-index:999; }
.modal {
  display:none; position:fixed; top:50%; left:50%; transform:translate(-50%,-50%);
  background:#fffaf5; border:2px solid var(--brand); border-radius:14px;
  padding:24px; z-index:1000; max-width:900px; width:94%; text-align:center;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
}
.modal h2 { margin:6px 0 10px; color:var(--brand); }
.close { background:#6B4C3B; color:#fff; border:0; padding:10px 18px; border-radius:10px; font-weight:800; cursor:pointer; }
.tiny { text-align:center; font-size:.85rem; color:#6b4c3b; margin:8px 0 0; opacity:.85; }

/* =============== CATEGORY CARDS OVERRIDES =============== */
#category-cards.product-list,
#m1-grid.product-list {
  display:flex !important; flex-wrap:wrap !important; gap:20px !important; justify-content:center !important; padding:20px !important;
}
#category-cards .product-card,
#m1-grid .product-card {
  flex: none !important;
  width: 240px !important;
  max-width: 240px !important;
  min-height: 300px !important;
  border-radius: 10px !important;
  padding: 20px !important;
  background: var(--card) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,.10) !important;
  transition: transform .2s, box-shadow .2s !important;
}
#category-cards .product-card:hover,
#m1-grid .product-card:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.15) !important;
}
#category-cards .product-card h3,
#m1-grid .product-card h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  color: var(--brand) !important;
  font-weight: 800 !important;
}
#category-cards .product-card .btn,
#m1-grid .product-card .btn {
  margin-top: auto !important;
  background: var(--brand) !important; color:#fff !important; border:0 !important;
  padding:10px 12px !important; border-radius:10px !important; font-weight:800 !important; cursor:pointer !important;
}

/* =============== Premium card style block (duplicate-friendly) =============== */
#category-cards.product-list,
#m1-grid.product-list {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; padding: 20px;
}
#category-cards .product-card,
#m1-grid .product-card {
  flex: none;
  width: 240px;
  max-width: 240px;
  min-height: 300px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  padding: 20px;
  display: flex; flex-direction: column;
  text-align: center;
  font-weight: bold;
  transition: transform .2s, box-shadow .2s;
}
#category-cards .product-card:hover,
#m1-grid .product-card:hover { transform: scale(1.03); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
#category-cards .product-card h3,
#m1-grid .product-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand); }
#category-cards .product-card .btn,
#m1-grid .product-card .btn { margin-top: auto; background: var(--brand); color:#fff; border:0; padding:10px 12px; border-radius:10px; cursor:pointer; }

/* =============== CENTERED HERO (soft brand colours) =============== */
.hero{
  text-align: center;
  max-width: 900px;
  margin: 12px auto 24px;
  padding: 0 12px;
}
.hero-title{
  margin: 8px 0 6px;
  color: var(--brand);
  font-weight: 900;
  line-height: 1.1;
  font-size: clamp(28px, 4.2vw, 42px);
}
.hero-sub{
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
}
.hero-lead{
  margin: 10px auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--brand);
}
.hero-links a{
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.hero-links a:hover{ text-decoration: underline; }

/* =============== Product List viewer page =============== */
.viewer-body { background:#fff; }
.viewer-bar {
  position: sticky; top: 0; z-index: 600;
  background: var(--cream);
  border-bottom: 1px solid #d9c6b5;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.viewer-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 10px; padding: 10px 12px;
}
.viewer-back {
  justify-self: start;
  color: var(--brand); font-weight: 700; text-decoration: none;
  padding: 6px 10px; border-radius: 8px;
}
.viewer-back:hover { background: rgba(0,0,0,.06); }
.viewer-title {
  justify-self: center; text-align: center;
  color: var(--brand); font-weight: 900;
}
.viewer-download {
  justify-self: end;
  display: inline-block;
  background: var(--brand); color: #fff;
  border: 0; padding: 8px 12px; border-radius: 10px;
  font-weight: 800; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.10);
}
.viewer-download:hover { filter: brightness(1.05); }
.viewer-main { max-width: 1200px; margin: 0 auto; padding: 10px 12px; }
.viewer-frame {
  width: 100%;
  height: calc(100vh - 70px);
  border: 1px solid #d9c6b5; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.viewer-fallback {
  text-align: center; margin: 12px 0 0;
  color: var(--brand); font-weight: 600;
}
.viewer-fallback a { color: var(--brand); text-decoration: underline; }
