/* ==========================================================================
   XGreen Solar — v4 additions (catalogue, product pages, price list)
   Loaded after style.css.
   ========================================================================== */

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: inherit; transition: .22s ease; min-height: 300px;
}
.cat-tile:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cfe3d8; }
.cat-tile .pic { aspect-ratio: 16 / 10; overflow: hidden; background: #eef3f0; }
.cat-tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.cat-tile .pic--contain { background: #f7faf8; padding: 14px; }
.cat-tile .pic--contain img { object-fit: contain; mix-blend-mode: multiply; }
.cat-tile:hover .pic img { transform: scale(1.04); }
.cat-tile .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.cat-tile h3 { font-size: 18px; margin-bottom: 8px; }
.cat-tile p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.cat-tile .more { margin-top: auto; font-weight: 650; font-size: 14.5px; color: var(--green-d); }

/* ---------- Product cards (catalogue) ---------- */
.pcard { text-decoration: none; }
.pcard .info { position: relative; }
.pcard .model {
  display: inline-block; font-size: 11px; letter-spacing: .08em; font-weight: 700;
  color: var(--green-d); background: var(--green-soft); border: 1px solid #d3ecdd;
  padding: 3px 8px; border-radius: 5px; margin-bottom: 8px; text-transform: uppercase;
}
.pcard .price-tag {
  margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--navy);
  border-top: 1px dashed var(--line); padding-top: 10px; display: block;
}
.pcard:hover .price-tag { color: var(--green-d); }

/* ---------- Category blocks on products page ---------- */
.cat .cat-head p { color: var(--muted); }
.cat .prodgrid { margin-top: 4px; }

/* ---------- Product detail ---------- */
.product-head { background: linear-gradient(180deg, #f4f8f6 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 26px 0 54px; }
.product-head .crumbs { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.product-head .crumbs a { color: var(--muted); }
.product-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.product-media {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: grid; place-items: center; padding: 18px;
}
.product-media img { width: auto; height: auto; max-width: 100%; max-height: 400px; object-fit: contain; }
.product-info h1 { font-size: clamp(27px, 3.2vw, 40px); margin: 6px 0 12px; }
.product-info .lead { color: var(--muted); margin-bottom: 20px; }
.product-info .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.product-info .speclist { margin-top: 18px; }

.price-box {
  background: #fff; border: 1px solid #cfe9da; border-left: 4px solid var(--green);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 14px;
}
.price-box .pb-label { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price-box strong { display: block; font-size: 22px; color: var(--navy); letter-spacing: -.02em; margin: 4px 0 2px; }
.price-box .pb-note { font-size: 12.5px; color: var(--muted); }

.product-body { display: grid; grid-template-columns: 1.55fr .85fr; gap: 48px; align-items: start; }
.pb-text h2 { font-size: 24px; margin-top: 4px; }
.pb-text h2 + p { margin-top: 6px; }
.pb-text .table-wrap { margin: 12px 0 10px; }
.spec-table th { width: 34%; background: #f1f7f4; }
.spec-table td { color: #2c3f4a; }
.pb-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.aside-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.aside-card p { font-size: 14px; color: var(--muted); }

/* ---------- Price list ---------- */
.price-group { margin: 34px 0 10px; }
.price-group h2 { font-size: 22px; margin-bottom: 12px; }
.price-table td { vertical-align: middle; }
.price-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.price-table .num { font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table .muted { color: var(--muted); font-size: 12.5px; }
.price-table tbody tr:hover { background: #fafcfb; }
.price-foot { margin: 40px 0 20px; padding: 26px; border: 1px dashed #cfe0d7; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #f7faf8; }
.price-foot p { margin: 0; color: #33454f; }

.notice {
  background: var(--green-soft); border: 1px solid #cfe9da; border-radius: var(--radius-sm);
  padding: 16px 20px; color: #1f4a35; font-size: 14.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-body { grid-template-columns: 1fr; gap: 28px; }
  .pb-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; gap: 26px; }
  .cat-grid { grid-template-columns: 1fr; }
  .pb-aside { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .product-head { padding-bottom: 38px; }
  .price-box strong { font-size: 19px; }
  .product-media img { max-height: 280px; }
}
