/* A photographed, linked catalogue in the site's existing Egyptian industrial palette. */
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.photo-shell { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #fff; overflow: hidden; }
.photo-shell img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-shell img[hidden], .photo-fallback[hidden] { display: none; }
.photo-fallback { padding: 24px; color: var(--muted); font-size: 13px; text-align: center; }
.product-grid { gap: 22px; border: 0; }
html[dir="rtl"] .product-grid { border: 0; }
.product-card.photo-card { display: flex; flex-direction: column; align-items: start; min-height: 0; padding: 16px 16px 22px; border: 1px solid #cfc2ab; border-top: 4px solid var(--green); box-shadow: 0 5px 12px #32251108; }
html[dir="rtl"] .product-card.photo-card { border-inline: 1px solid #cfc2ab; }
.product-photo-link { position: relative; display: block; width: 100%; height: 245px; border: 1px solid var(--line); background: white; }
.photo-count { position: absolute; inset-inline-start: 0; bottom: 0; padding: 4px 10px; background: var(--green); color: white; font: 700 10px Cairo, Tahoma, sans-serif; }
.card-thumbnails { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 8px; margin: 8px 0; }
.card-thumbnail { display: block; height: 78px; border: 1px solid var(--line); }
.product-card .card-source { font-size: 10px; line-height: 1.6; margin-block: 3px 0; }
.source-credit { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.card-source .source-credit { font-size: inherit; }
.photo-card .product-number { margin-top: 16px; }
.photo-card h3 { font-size: 21px; }
.photo-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.photo-card .card-summary { font-size: 13px; line-height: 1.7; margin-bottom: 22px; }
.photo-card .card-cta { margin-top: auto; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); }
.reference-note { padding: 15px 20px; border-inline-start: 4px solid var(--amber); background: #e9e1d0; color: #574e3d; font-size: 12px; line-height: 1.8; }
#catalogue-reference-note { margin: -28px 0 26px; }
.catalogue-heading { background: var(--green); color: var(--white); padding: 22px 0 40px; border-bottom: 6px solid var(--amber); }
.catalogue-heading h1 { font-size: clamp(32px, 4vw, 52px); max-width: 100%; text-shadow: none; }
.catalogue-heading .eyebrow { margin-block: 24px 8px; }
.breadcrumbs { display: flex; gap: 13px; align-items: center; font-size: 12px; color: #e8dfcc; }
.breadcrumbs a:hover { text-decoration: underline; }
.catalogue-body { padding-bottom: 60px; }
.category-directory { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.category-directory a { padding: 7px 11px; font-size: 11px; background: var(--white); border: 1px solid var(--line); }
.category-directory a[aria-current], .category-directory a:hover { color: white; background: var(--green); border-color: var(--green); }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.product-gallery { min-width: 0; position: sticky; top: 20px; }
.gallery-figure { margin: 0; border: 1px solid #cfc2ab; background: var(--white); box-shadow: 0 7px 18px #33251c0b; }
.gallery-zoom { position: relative; display: block; width: 100%; height: 400px; border: 0; padding: 18px; background: #fff; cursor: zoom-in; }
.zoom-hint { position: absolute; inset-inline-end: 12px; bottom: 12px; padding: 4px 9px; color: var(--green); background: #f1eadcf2; font-size: 10px; }
.gallery-caption { display: grid; gap: 6px; padding: 17px 20px; border-top: 1px solid var(--line); }
.gallery-caption strong { font: 700 15px Cairo, Tahoma, sans-serif; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.gallery-arrow { cursor: pointer; width: 44px; height: 36px; border: 1px solid var(--line); background: var(--white); color: var(--green); }
.gallery-position { font-size: 12px; color: var(--muted); }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gallery-thumb { display: grid; grid-template-rows: 92px 1fr; min-width: 0; padding: 5px; border: 2px solid var(--line); background: var(--white); cursor: pointer; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--red); background: #eadfcb; }
.thumb-caption { display: block; padding: 7px 2px 2px; font-size: 10px; line-height: 1.5; }
.manufacturer-link { display: inline-flex; gap: 8px; padding-block: 17px 0; color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; font-weight: bold; }
.detail-intro { margin-top: 0; font-size: 17px; line-height: 1.9; }
.detail-subtitle { font-size: 20px; line-height: 1.5; margin: 0 0 12px; color: var(--green); }
.format-section, .application-section { margin-block: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-information ul { margin: 0; padding-inline-start: 20px; font-size: 14px; }
.product-information li { padding-bottom: 8px; }
.product-information li::marker { color: var(--red); }
.enquiry-panel { background: var(--white); padding: 25px; border: 1px solid #cfc2ab; border-top: 5px solid var(--red); }
.enquiry-panel .button { margin-top: 12px; width: 100%; text-align: center; }
.enquiry-note, .specification-note { margin-block: 12px 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.specification-note { border-top: 1px solid var(--line); padding-top: 12px; }
.catalogue-body > .reference-note { margin-top: 32px; }
.related-products { margin-top: 46px; }
.related-products > h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-card { display: grid; grid-template-rows: 180px auto auto; gap: 8px; background: var(--white); border: 1px solid #cfc2ab; padding: 12px; }
.related-card strong { font: 700 15px Cairo, Tahoma, sans-serif; color: var(--green); margin-top: 6px; }
.related-card > span:last-child { font-size: 11px; color: var(--muted); }
.photo-lightbox { width: min(940px, calc(100% - 24px)); max-height: 94dvh; padding: 22px; background: var(--white); border: 2px solid var(--green); }
.photo-lightbox::backdrop { background: #081f18dc; }
.photo-lightbox .photo-shell { height: min(60dvh, 600px); }
.lightbox-close { display: block; margin-inline-start: auto; margin-bottom: 16px; min-height: 40px; padding: 8px 15px; color: white; background: var(--green); border: 0; cursor: pointer; }
.photo-lightbox > p { margin-block: 12px 4px; }
@media (max-width: 980px) {
  .detail-columns { gap: 28px; grid-template-columns: minmax(0, 1fr); }
  .product-gallery { position: static; }
  .gallery-zoom { height: 420px; }
  .gallery-thumb { grid-template-rows: 120px 1fr; }
  .related-card { grid-template-rows: 140px auto auto; }
}
@media (max-width: 620px) {
  .catalogue-heading { padding-bottom: 30px; }
  .catalogue-heading h1 { font-size: 33px; line-height: 1.3; }
  .category-directory { gap: 5px; }
  .category-directory a { font-size: 10px; padding: 7px 9px; }
  .gallery-zoom { height: 300px; padding: 10px; }
  .gallery-thumbnails { gap: 6px; }
  .gallery-thumb { grid-template-rows: 75px 1fr; padding: 3px; }
  .gallery-caption { padding: 14px; }
  .detail-intro { font-size: 16px; }
  .enquiry-panel { padding: 20px; }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card { grid-template-columns: 105px 1fr; grid-template-rows: auto auto; column-gap: 14px; }
  .related-card > .photo-shell { height: 105px; grid-row: span 2; }
  .related-card strong { align-self: end; }
  #catalogue-reference-note { margin-top: -22px; }
  .photo-lightbox { padding: 14px; }
}
