:root {
  --bg: #f6eee1;
  --panel: #e9ddcb;
  --gold: #788365;
  --cream: #ffffff;
  --muted: #5f6258;
  --line: #d4c8b5;
  --text: #20231d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px Inter, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= HEADER ================= */

header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  box-sizing: border-box;

  padding: 12px 5%;
  min-height: 82px;
  max-height: 100px;

  background: rgba(246, 238, 225, 0.94);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;

  flex-shrink: 0;
}

.brand img {
  width: 105px;
  height: auto;
  max-height: 55px;
  object-fit: contain;
  display: block;
}

.brand small,
.eyebrow {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 2.5px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--gold);
}
/* ================= MAIN ================= */

main {
  max-width: 1200px;
  margin: auto;
}

/* ================= HERO ================= */

.hero {
  min-height: 650px;
  padding: 90px 6%;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero h1,
.page-head h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  margin: 12px 0;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid #9ea58f;
}

.hero-card {
  height: 380px;

  border: 1px solid var(--line);
  border-radius: 24px;

  background: linear-gradient(
    145deg,
    #a9b492 0%,
    #f6eee1 58%,
    #e8dcc9 100%
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  box-shadow: 0 24px 60px rgba(72, 76, 60, 0.18);
}

.hero-card img {
  width: min(72%, 420px);
  height: auto;
  display: block;
}

.hero-card p {
  margin: 12px 0 0;
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ================= SECTIONS ================= */

.section {
  padding: 80px 6%;
}

.section.dark {
  background: #efe3d1;
  max-width: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section h2 {
  font-size: 42px;
  margin: 5px 0;
}

.section input,
.page-head input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  background: #fffaf3;
  border: 1px solid #cfc3b1;
  color: var(--text);
  padding: 14px;
  border-radius: 8px;
  outline: none;
}

.section input:focus,
.page-head input:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--gold);
}

/* ================= PRODUCT GRID ================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* PRODUCT CARD */

.card,
.wall-card,
.device {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/*
  IMPORTANT:
  contain = shows the COMPLETE image
  cover  = crops/zooms the image
*/

.card img,
.wall-card img {
  width: 100%;
  height: 210px;

  object-fit: contain;
  object-position: center;

  display: block;

  background: #ddd4c5;
  padding: 10px;
}

/* Product content */

.card-body,
.wall-body {
  padding: 20px;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.card h3,
.wall-card h3 {
  margin: 9px 0;
  font-size: 21px;
  line-height: 1.25;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.card .btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 15px;
  align-self: flex-start;
}

/* ================= DEVICES ================= */

.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.device {
  padding: 20px;
}

.device b {
  font-size: 28px;
}

.device h3 {
  margin: 12px 0 6px;
}

/* ================= PAGE HEAD ================= */

.page-head {
  padding: 100px 6% 30px;
}

.page-head > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.6;
}

.page-head input {
  width: min(500px, 100%);
  margin-top: 25px;
}

/* ================= WALLPAPERS ================= */

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.wall-card img {
  height: 250px;
}

.wall-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.wall-actions a {
  padding: 10px 13px;
  border: 1px solid #aeb49f;
  border-radius: 7px;
}

.wall-actions a:first-child {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ================= CONTACT ================= */

.contact {
  border-top: 1px solid var(--line);
}

.contact a {
  color: var(--gold);
}

/* ================= FOOTER ================= */

footer {
  padding: 30px 6%;
  border-top: 1px solid var(--line);
  color: #888;
}

footer a {
  color: var(--gold);
}

.empty {
  padding: 50px;
  text-align: center;
  color: #888;
}

/* ================= ADMIN ================= */

.admin-body {
  min-height: 100vh;
  background: var(--bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: #eee2d0;
}

.sidebar h2 {
  letter-spacing: 5px;
}

.sidebar a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: #aaa;
  margin: 5px 0;
}

.sidebar a:hover,
.sidebar a.active {
  background: #dce1d0;
  color: #596149;
}

.admin-main {
  padding: 40px;
  max-width: 1200px;
  width: 100%;
}

.admin-main h1 {
  font-size: 42px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  background: #efe4d3;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.stat b {
  font-size: 34px;
  color: var(--gold);
}

.admin-card {
  background: #efe4d3;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 22px;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.admin-form label {
  display: block;
  margin-bottom: 7px;
  color: #ccc;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
}

.admin-form button {
  border: 0;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.notice {
  margin-top: 15px;
  color: var(--gold);
}

/* ================= TABLE ================= */

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

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #292929;
}

th {
  color: var(--gold);
}

/* ================= LOGIN ================= */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-box {
  width: min(430px, 100%);
  background: #111;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 35px;
}

.login-box h1 {
  font-size: 42px;
  margin: 0;
}

.login-box form {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}

.login-box input {
  width: 100%;
  background: #fffaf3;
  border: 1px solid #cfc3b1;
  color: var(--text);
  padding: 14px;
  border-radius: 8px;
}

.login-box button {
  background: var(--gold);
  border: 0;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

/* ================= TABLET ================= */

@media (max-width: 850px) {
  nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid,
  .wall-grid,
  .device-grid,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 550px) {
  .grid,
  .wall-grid,
  .device-grid,
  .admin-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-card {
    height: 280px;
  }

  .section-head {
    display: block;
  }

  .section input {
    width: 100%;
    margin-top: 15px;
  }

  .admin-main {
    padding: 22px;
  }

  nav {
    gap: 8px;
    font-size: 12px;
  }

  .brand img {
    width: 110px;
  }
}

/* =========================
   ZENO PRODUCT SECTION
   MATCHING WEBSITE PALETTE
========================= */

#productsGrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

/* Product card */

.compact-product {
    padding: 8px;
    border-radius: 14px;

    /* ZENO cream */
    background: #eee4d2;

    border: 1px solid #d8cbb7;

    box-shadow: 0 5px 16px rgba(35, 32, 25, 0.08);

    overflow: hidden;
    min-width: 0;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.compact-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(35, 32, 25, 0.13);
}


/* =========================
   PRODUCT IMAGE
========================= */

.compact-product .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;

    border-radius: 10px;
    overflow: hidden;

    background: #f7f0e4;

    border: 1px solid #dfd3c0;
}

.compact-product .product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    transition: transform .25s ease;
}

.compact-product:hover .product-image img {
    transform: scale(1.04);
}


/* =========================
   CARD CONTENT
========================= */

.compact-product .card-body {
    padding: 9px 4px 4px;
}


/* Category */

.compact-product .tag {
    display: block;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: #7d866d;

    margin-bottom: 5px;
}


/* Product name */

.compact-product h3 {
    color: #171914;

    font-size: 12px;
    line-height: 1.25;

    margin: 0 0 9px;

    min-height: 30px;
}


/* Hide descriptions */

.compact-product .muted {
    display: none;
}


/* =========================
   VIEW BUTTON
========================= */

.compact-product .product-view {
    display: block;

    width: 100%;

    box-sizing: border-box;

    text-align: center;
    text-decoration: none;

    background: #7f8c73;
    color: #fffdf8;

    border: none;

    border-radius: 999px;

    padding: 5px 6px;

    font-size: 9px;
    font-weight: 700;

    transition:
        background .2s ease,
        transform .2s ease;
}

.compact-product .product-view:hover {
    background: #69765e;
    transform: translateY(-1px);
}


/* =========================
   SEARCH BAR
========================= */

#search {
    background: #f7f0e4;

    color: #171914;

    border: 1px solid #d5c7b2;

    border-radius: 999px;

    padding: 11px 16px;

    outline: none;
}

#search::placeholder {
    color: #8b877d;
}

#search:focus {
    border-color: #7f8c73;
    box-shadow: 0 0 0 3px rgba(127, 140, 115, .15);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    #productsGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    #productsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    #productsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ===== ZENO WIDTH + SCALE FIX ===== */

body {
  margin: 0;
  overflow-x: hidden;
}

/* Header */
header {
  width: 100%;
  box-sizing: border-box;
  padding: 28px 0;
}

header > * {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

/* If header contains brand + nav directly */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(24px, calc((100vw - 1250px) / 2));
  padding-right: max(24px, calc((100vw - 1250px) / 2));
}

/* Main content */
main {
  width: 100%;
  box-sizing: border-box;
}

/* Sections */
.section {
  width: min(1250px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Hero */
.hero {
  width: min(1250px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Product grid */
.grid {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

/* Product cards */
.card {
  min-width: 0;
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

/* Setup section */
.device-grid {
  width: 100%;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

/* Search */
#search {
  width: 180px;
  box-sizing: border-box;
}

/* Smaller header logo */
.brand img {
  max-width: 120px;
  height: auto;
}

/* Prevent huge typography */
.hero h1 {
  font-size: clamp(48px, 5vw, 76px);
}

/* Laptop / smaller screens */
@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tablet */
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section,
  .hero {
    width: calc(100% - 28px);
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card img {
    height: 150px;
  }

  header {
    padding: 18px 14px;
  }

  .brand img {
    max-width: 90px;
  }
}
/* HEADER HEIGHT FIX */
body > header {
  height: 82px !important;
  min-height: 82px !important;
  max-height: 82px !important;
  padding: 10px 5% !important;
  box-sizing: border-box !important;
}

body > header .brand img {
  width: 105px !important;
  max-height: 55px !important;
}

body > header nav {
  height: 100% !important;
  align-items: center !important;
} 