/* ==========================================================================
   Public catalogue styles — extends the existing site skin.
   Palette matches the landing page: #002d7e (navy), #ff8400 (accent), #1f1f1f.
   ========================================================================== */

.catalogue-body {
  background: #fff;
  /* clears the fixed header from the base skin */
}

.catalogue-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 18px 60px;
}

/* ---------- Page heading ---------- */
.cat-page-head { margin-bottom: 26px; }
.cat-page-head h1 {
  font-size: 30px;
  color: #1f1f1f;
  margin: 0 0 8px;
  font-weight: 300;
}
.cat-page-head p { color: #898989; margin: 0; font-size: 15px; }

/* ---------- Breadcrumb ---------- */
.cat-crumbs {
  font-size: 13px;
  color: #999;
  margin-bottom: 18px;
}
.cat-crumbs a { color: #999; }
.cat-crumbs a:hover { color: #ff8400; }
.cat-crumbs .sep { padding: 0 6px; }

/* ---------- Filters ---------- */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 26px;
}
.cat-filters .f-group { min-width: 180px; }
.cat-filters .f-group.grow { flex: 1; min-width: 240px; }
.cat-filters label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #777;
  margin-bottom: 5px;
}
.cat-filters input[type=text],
.cat-filters select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.cat-filters input:focus,
.cat-filters select:focus {
  outline: none;
  border-color: #002d7e;
}

/* ---------- Buttons ---------- */
.cat-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 4px;
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  font-family: inherit;
}
.cat-btn:hover { background: #f2f2f2; color: #333; text-decoration: none; }

.cat-btn-primary {
  background: #002d7e;
  border-color: #002d7e;
  color: #fff;
  letter-spacing: .5px;
}
.cat-btn-primary:hover { background: #00214f; border-color: #00214f; color: #fff; }

.cat-btn-accent {
  background: #ff8400;
  border-color: #ff8400;
  color: #fff;
}
.cat-btn-accent:hover { background: #e07400; border-color: #e07400; color: #fff; }

.cat-btn-block { display: block; width: 100%; text-align: center; }
.cat-btn-lg { padding: 13px 26px; font-size: 16px; }

/* ---------- Product grid ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.prod-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.prod-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
  transform: translateY(-3px);
}

.prod-card-media {
  position: relative;
  display: block;
  height: 210px;
  background: #f4f4f4;
  overflow: hidden;
}
.prod-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.prod-card:hover .prod-card-media img { transform: scale(1.04); }

.prod-card-noimg {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
  background: #f4f4f4;
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff8400;
  color: #fff;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}
.prod-badge-sale { background: #c0392b; left: auto; right: 10px; }

.prod-card-body {
  padding: 16px 17px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-card-cat {
  font-size: 12px;
  color: #ff8400;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 7px;
}
.prod-card-title {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.35;
  font-weight: 400;
}
.prod-card-title a { color: #1f1f1f; }
.prod-card-title a:hover { color: #002d7e; text-decoration: none; }

.prod-card-desc {
  font-size: 13.5px;
  color: #898989;
  margin: 0 0 14px;
  line-height: 1.55;
  flex: 1;
}

.prod-card-price {
  font-size: 19px;
  color: #002d7e;
  font-weight: 600;
  margin-bottom: 12px;
}
.prod-card-price s {
  font-size: 14px;
  color: #aaa;
  font-weight: 400;
  margin-right: 8px;
}
.prod-card-price .on-request { font-size: 14px; color: #999; font-weight: 400; }

/* ---------- Empty state ---------- */
.cat-empty {
  text-align: center;
  padding: 70px 20px;
  color: #898989;
  border: 1px dashed #dcdcdc;
  border-radius: 6px;
}
.cat-empty h2 { font-size: 20px; color: #444; margin: 0 0 8px; font-weight: 400; }

/* ---------- Pagination ---------- */
.cat-pagination {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.cat-pagination a,
.cat-pagination span {
  padding: 8px 13px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  color: #444;
  background: #fff;
}
.cat-pagination a:hover { background: #f2f2f2; text-decoration: none; }
.cat-pagination .is-current {
  background: #002d7e;
  border-color: #002d7e;
  color: #fff;
  font-weight: 600;
}

/* ---------- Product detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 42px;
  margin-bottom: 42px;
}

.pd-gallery-main {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
  margin-bottom: 12px;
}
.pd-gallery-main img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}
.pd-gallery-main .pd-noimg {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}

.pd-thumbs { display: flex; gap: 9px; flex-wrap: wrap; }
.pd-thumb {
  width: 84px;
  height: 84px;
  border: 2px solid #e8e8e8;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #f7f7f7;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-active { border-color: #002d7e; }

.pd-title {
  font-size: 29px;
  margin: 0 0 12px;
  color: #1f1f1f;
  font-weight: 300;
  line-height: 1.25;
}

.pd-meta {
  font-size: 13.5px;
  color: #898989;
  margin-bottom: 16px;
}
.pd-meta span { margin-right: 16px; }
.pd-meta strong { color: #555; font-weight: 500; }

.pd-price {
  font-size: 32px;
  color: #002d7e;
  font-weight: 600;
  margin: 0 0 6px;
}
.pd-price s { font-size: 19px; color: #aaa; font-weight: 400; margin-right: 12px; }
.pd-price-note { font-size: 13.5px; color: #999; margin-bottom: 18px; }
.pd-price-note .on-request { font-size: 20px; color: #666; }

.pd-availability {
  display: inline-block;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.pd-in-stock { background: #e7f6ed; color: #14663a; }
.pd-out-stock { background: #f1f2f4; color: #5c636a; }

.pd-short {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.pd-qty {
  display: flex;
  align-items: stretch;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
}
.pd-qty button {
  width: 40px;
  border: none;
  background: #f7f7f7;
  font-size: 18px;
  cursor: pointer;
  color: #444;
  line-height: 1;
}
.pd-qty button:hover { background: #ececec; }
.pd-qty input {
  width: 62px;
  border: none;
  border-left: 1px solid #dcdcdc;
  border-right: 1px solid #dcdcdc;
  text-align: center;
  font-size: 15px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.pd-qty input::-webkit-outer-spin-button,
.pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Detail sections ---------- */
.pd-section {
  border-top: 1px solid #eee;
  padding: 30px 0 6px;
  margin-top: 6px;
}
.pd-section h2 {
  font-size: 19px;
  margin: 0 0 16px;
  color: #1f1f1f;
  font-weight: 400;
}
.pd-section h2:before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 17px;
  background: #ff8400;
  margin-right: 10px;
  vertical-align: -2px;
}
.pd-prose { font-size: 15px; line-height: 1.75; color: #555; }
.pd-prose p { font-size: 15px; color: #555; margin: 0 0 13px; }
.pd-prose ul { list-style: disc; padding-left: 22px; margin: 0 0 13px; }
.pd-prose li { margin-bottom: 6px; }
.pd-prose img { max-width: 100%; height: auto; }

.pd-specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pd-specs tr { border-bottom: 1px solid #eee; }
.pd-specs th {
  text-align: left;
  padding: 11px 14px 11px 0;
  color: #777;
  font-weight: 500;
  width: 38%;
  vertical-align: top;
}
.pd-specs td { padding: 11px 0; color: #333; }

/* ---------- Related ---------- */
.pd-related { margin-top: 46px; }
.pd-related h2 {
  font-size: 21px;
  margin: 0 0 20px;
  font-weight: 400;
  color: #1f1f1f;
}

/* ---------- Purchase form ---------- */
.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
}

.purchase-product {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  position: sticky;
  top: 74px;
}
.purchase-product-img {
  height: 220px;
  background: #f0f0f0;
  overflow: hidden;
}
.purchase-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.purchase-product-body { padding: 20px; }
.purchase-product-body .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 5px;
}
.purchase-product-body h2 {
  font-size: 19px;
  margin: 0 0 12px;
  font-weight: 400;
  color: #1f1f1f;
}
.purchase-product-price {
  font-size: 25px;
  color: #002d7e;
  font-weight: 600;
  margin-bottom: 4px;
}
.purchase-product-price s { font-size: 15px; color: #aaa; font-weight: 400; margin-right: 9px; }

.purchase-form {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 26px 26px 24px;
  background: #fff;
}
.purchase-form h2 {
  font-size: 21px;
  margin: 0 0 6px;
  font-weight: 400;
  color: #1f1f1f;
}
.purchase-form .lead { color: #898989; font-size: 14px; margin-bottom: 22px; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.pf-grid .full { grid-column: 1 / -1; }

.pf-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}
.pf-field label .req { color: #c0392b; }
.pf-field input,
.pf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14.5px;
  font-family: inherit;
  color: #333;
  background: #fff;
}
.pf-field textarea { resize: vertical; min-height: 110px; }
.pf-field input:focus,
.pf-field textarea:focus { outline: none; border-color: #002d7e; }
.pf-field .hint { font-size: 12px; color: #999; margin-top: 5px; }

.pf-error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #8f2820;
  padding: 11px 15px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 14px;
}
.pf-submit {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ---------- Confirmation ---------- */
.confirm-box {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 40px 38px;
  text-align: center;
}
.confirm-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #e7f6ed;
  color: #14663a;
  font-size: 34px;
  line-height: 66px;
  margin: 0 auto 20px;
}
.confirm-box h1 { font-size: 27px; margin: 0 0 10px; font-weight: 300; color: #1f1f1f; }
.confirm-box .lead { color: #898989; font-size: 15px; margin-bottom: 26px; }
.confirm-ref {
  display: inline-block;
  background: #f7f7f7;
  border: 1px dashed #ccc;
  border-radius: 5px;
  padding: 12px 26px;
  font-size: 21px;
  letter-spacing: 1px;
  color: #002d7e;
  font-weight: 600;
  margin-bottom: 28px;
}

.confirm-details {
  text-align: left;
  border-top: 1px solid #eee;
  margin-top: 8px;
}
.confirm-details dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #999;
  padding-top: 15px;
}
.confirm-details dd {
  margin: 4px 0 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 15px;
  color: #333;
}

/* ---------- Alerts ---------- */
.cat-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14.5px;
}
.cat-alert-success { background: #e7f6ed; border: 1px solid #b7e2c8; color: #14663a; }
.cat-alert-error   { background: #fdecea; border: 1px solid #f5c6c0; color: #8f2820; }
.cat-alert-warning { background: #fff5e6; border: 1px solid #ffd9a3; color: #8a5200; }
.cat-alert-info    { background: #eaf1fb; border: 1px solid #c3d7f2; color: #1d4a8a; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
}

.contact-details {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 26px 26px 24px;
  background: #fafafa;
  position: sticky;
  top: 74px;
}
.contact-details h2 {
  font-size: 21px;
  margin: 0 0 12px;
  font-weight: 400;
  color: #1f1f1f;
}
.contact-details .lead { color: #898989; font-size: 14px; margin-bottom: 22px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding: 12px 0;
  border-top: 1px solid #ededed;
  font-size: 14px;
  color: #333;
}
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list .contact-label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 4px;
}
.contact-list a { color: #002d7e; }
.contact-list a:hover { color: #ff8400; }

.contact-form {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 26px 26px 24px;
}
.contact-form h2 {
  font-size: 21px;
  margin: 0 0 6px;
  font-weight: 400;
  color: #1f1f1f;
}
.contact-form .lead { color: #898989; font-size: 14px; margin-bottom: 22px; }

/* ---------- About page ---------- */
.about-layout { max-width: 820px; }
.about-body h2 {
  font-size: 19px;
  margin: 30px 0 10px;
  font-weight: 400;
  color: #1f1f1f;
}
.about-body h2:first-child { margin-top: 0; }
.about-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #4a4a4a;
  margin: 0 0 14px;
}
.about-cta { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Brand logo ----------
   Logo sizing lives in mobile-nav.css, because that stylesheet is loaded by
   BOTH index.html and the PHP layouts, whereas this file only reaches the PHP
   pages. Keeping it in one place avoids drift between the two. */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .purchase-layout { grid-template-columns: 1fr; }
  .purchase-product { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-details { position: static; }
}

@media (max-width: 760px) {

  .catalogue-wrap { padding: 22px 14px 44px; }
  .cat-page-head h1 { font-size: 24px; }
  .pd-title { font-size: 23px; }
  .pd-price { font-size: 26px; }
  .pf-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .prod-card-media, .prod-card-noimg { height: 175px; }
  .confirm-box { padding: 28px 20px; }
  .purchase-form { padding: 20px 17px; }
  .contact-form { padding: 20px 17px; }
  .contact-details { padding: 20px 17px; }
  .site-logo { max-height: 46px; }

  /* Header nav stacks on small screens */
  header .header { width: 100%; margin-left: 0; top: 0; }
  header .header nav ul li { height: auto; }
  header .header nav ul li a { margin-top: 12px; height: auto; margin-right: .7em; font-size: 14px; }
  header .logo { margin-left: 1rem !important; }
}

@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr; }
}
