/* Catalogue styles. Base styles (fonts, colours, .btn, .container, .section, .eyebrow,
   .lead, header, footer) come from the site's own stylesheet via the site shell. */

/* ---------- list: hero ---------- */
.cat-hero { padding: 56px 0 48px; }
.cat-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.cat-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.75rem); }
.cat-hero .lead { margin: 0 0 24px; }
.cat-hero-img { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cat-hero-img img { width: 100%; height: auto; display: block; }

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { position: relative; padding-inline-start: 26px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.trust li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand); font-size: .72rem; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }

/* ---------- product cards ---------- */
.range-h2 { margin: 0 0 26px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: transform .15s ease, box-shadow .2s ease, border-color .2s; }
.pcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfdcf0; }
.pcard-img { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-emoji { font-size: 4rem; }
.pcard-body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink); }
.pcard-body p { margin: 0 0 14px; font-size: .93rem; line-height: 1.55; }
.pcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard-more { font-weight: 650; font-size: .9rem; color: var(--brand); white-space: nowrap; }

.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .76rem; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint); padding: 4px 10px; border-radius: 999px; }

.price { font-weight: 750; color: var(--ink); font-size: .95rem; }
.price small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.price--quote { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ---------- list: CTA band ---------- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 20px; padding: 36px 40px; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; max-width: 56ch; }
.cta-band .btn--primary { background: #fff; color: var(--brand-dark); box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--brand-tint); }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- detail ---------- */
.pd { padding: 36px 0 72px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.pd-gallery { position: sticky; top: 92px; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gthumb { padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.is-on, .gthumb:hover { border-color: var(--brand); }
.pd-info h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 14px; }
.pd-info .lead { margin: 0 0 18px; }
.pd-price { margin: 4px 0 20px; font-size: .92rem; color: var(--muted); }
.pd-info .trust { margin: 22px 0 26px; }

.spec-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-row:nth-child(even) { background: var(--bg-alt); }
.spec-row:last-child { border-bottom: none; }
.spec-k { font-weight: 700; color: var(--ink); }
.spec-v { color: var(--ink-soft); }

.pd-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 64px; align-items: start; }
.pd-desc h2 { margin: 0 0 14px; font-size: 1.5rem; }
.pd-related { margin-top: 72px; }
.pd-related h2 { margin: 0 0 24px; font-size: 1.6rem; }

.price-note { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.pd-video { margin-top: 34px; }
.pd-video h2 { font-size: 1.2rem; margin: 0 0 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f2f63; }
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 700; color: #fff; background: rgba(15, 47, 99, .9); border: 2px solid rgba(255,255,255,.85);
  border-radius: 999px; padding: 12px 22px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.video-play:hover { background: var(--brand); }
.video-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- enquiry form ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.form .eyebrow { margin: 0; }
.form-title { font-size: 1.3rem; margin: 0; }
.form-note { margin: 0; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form .btn { justify-content: center; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.status { margin: 0; padding: 11px 13px; border-radius: 9px; font-size: .92rem; font-weight: 550; }
.status--ok { background: #e7f7ed; color: #14743b; border: 1px solid #b6e3c6; }
.status--err { background: #fdecec; color: #a3261f; border: 1px solid #f3c2c0; }

/* ---------- fallback chrome (only if the site shell is missing) ---------- */
.cat-fallback-head, .cat-fallback-foot { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cat-fallback-foot { border-top: 1px solid var(--line); border-bottom: none; margin-top: 40px; color: var(--muted); }

/* ---------- RTL ---------- */
[dir=rtl] .pcard-more span { display: inline-block; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .cat-hero-grid, .pd-grid, .pd-lower { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { position: static; }
}
@media (max-width: 600px) {
  .pgrid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .cta-band { padding: 28px 24px; }
  .cat-hero { padding-top: 32px; }
}

/* ---------- admin (admin.php) ---------- */
.admin-wrap { max-width: 900px; margin: 40px auto; padding: 0 24px; }
.admin-wrap .btn { border-radius: 10px; padding: 10px 18px; }
.btn--sm { padding: 8px 14px; font-size: .88rem; }
.muted { color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.admin-table th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.tabs a { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink-soft); background: #fff; }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 650; font-size: .85rem; }
.field input, .field textarea, .field select { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }

.specs-link { margin: 12px 0 0; font-weight: 650; font-size: 0.92rem; }

/* Size-by-size items (2026-10-02) */
.sz-lead { margin: -8px 0 18px; color: var(--ink-soft); }
.sz-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.sz-jump a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.sz-jump a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.sz-jump span { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.sz-region { margin-bottom: 44px; scroll-margin-top: 90px; }
.sz-region h3 { margin: 0 0 4px; font-size: 1.3rem; }
.sz-region > p { margin: 0 0 18px; color: var(--ink-soft); }
.pgrid--sizes { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid--sizes .pcard-body { padding: 14px 16px 14px; }
.pgrid--sizes .pcard-body h3 { font-size: .98rem; }
.pgrid--sizes .pcard-body p { font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sz-block { margin: 40px 0 8px; }
.sz-block h2 { margin: 0 0 16px; }
.sz-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.sz-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.sz-fig img { width: 100%; height: auto; display: block; }
.sz-fig figcaption { font-size: .85rem; color: var(--muted); padding: 8px 6px 2px; }
.sz-facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.sz-facts dt, .sz-facts dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sz-facts dt { font-weight: 700; background: var(--bg-alt); }
.sz-facts dt:last-of-type, .sz-facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 1100px) { .pgrid--sizes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .sz-grid { grid-template-columns: 1fr; } .pgrid--sizes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sz-facts { grid-template-columns: 1fr; } .sz-facts dt { border-bottom: 0; padding-bottom: 2px; } }
