/*
 * custom.css — jetx-child (child theme of Hummingbird)
 * Location: themes/jetx-child/assets/css/custom.css
 */

/* ==========================================================
   1. DESIGN TOKENS (used by the gab-* content pages)
   ========================================================== */
:root {
  --gab-accent: #245fa8;
  --gab-accent-dark: #1b4a85;
  --gab-tint: #eef5fd;
  --gab-border: #d3e2f4;
  --gab-radius: 0; /* square corners, matching the site-wide setting below */
}

/* ==========================================================
   2. SITE-WIDE BOOTSTRAP / HUMMINGBIRD OVERRIDES
   ========================================================== */
:root {
  /* Primary colours */
  --bs-primary:                #A7B5C6;
  --bs-primary-rgb:            167, 181, 198;
  --bs-btn-bg:                 #A7B5C6;
  --bs-btn-border-color:       #A7B5C6;
  --bs-btn-hover-bg:           #9D9DCB;
  --bs-btn-hover-border-color: #9D9DCB;
  --bs-btn-active-bg:          #9D9DCB;
  --bs-btn-active-border-color:#9D9DCB;
  --bs-link-color:             #A7B5C6;
  --bs-link-hover-color:       #9D9DCB;

  /* Remove all rounded corners */
  --bs-border-radius:            0;
  --bs-border-radius-sm:         0;
  --bs-border-radius-md:         0;
  --bs-border-radius-lg:         0;
  --bs-border-radius-xl:         0;
  --bs-border-radius-xxl:        0;
  --bs-border-radius-pill:       0;
  --bs-card-border-radius:       0;
  --bs-card-inner-border-radius: 0;

  /* Remove box shadows, use a light grey border instead */
  --bs-box-shadow:        none;
  --bs-box-shadow-sm:     none;
  --bs-box-shadow-lg:     none;
  --bs-box-shadow-xl:     none;
  --bs-box-shadow-inset:  none;
  --bs-card-border-color: #e0e0e0;
  --bs-card-border-width: 1px;
}

/* Primary button */
.btn-primary {
  --bs-btn-bg:                    #A7B5C6;
  --bs-btn-border-color:          #A7B5C6;
  --bs-btn-hover-bg:              #9D9DCB;
  --bs-btn-hover-border-color:    #9D9DCB;
  --bs-btn-active-bg:             #9D9DCB;
  --bs-btn-active-border-color:   #9D9DCB;
  --bs-btn-disabled-bg:           #A7B5C6;
  --bs-btn-disabled-border-color: #A7B5C6;
  background-color: #A7B5C6 !important;
  border-color:     #A7B5C6 !important;
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: #9D9DCB !important;
  border-color:     #9D9DCB !important;
}

/* Outline primary button */
.btn-outline-primary {
  --bs-btn-color:                 #A7B5C6;
  --bs-btn-border-color:          #A7B5C6;
  --bs-btn-hover-color:           #fff;
  --bs-btn-hover-bg:              #9D9DCB;
  --bs-btn-hover-border-color:    #9D9DCB;
  --bs-btn-focus-shadow-rgb:      167, 181, 198;
  --bs-btn-active-color:          #fff;
  --bs-btn-active-bg:             #9D9DCB;
  --bs-btn-active-border-color:   #9D9DCB;
  --bs-btn-disabled-color:        #A7B5C6;
  --bs-btn-disabled-border-color: #A7B5C6;
}

/* Hard-coded border radius that ignores the variables */
img,
.card,
.card-img,
.card-img-top,
.card-img-bottom,
.img-fluid,
.img-thumbnail {
  border-radius: 0 !important;
}

/* Hard-coded box shadows that ignore the variables */
*:hover,
*:focus,
*:active {
  box-shadow: none !important;
}

/* Keep a clear keyboard focus outline (dark enough to see on white) */
*:focus-visible {
  outline: 2px solid #353F4A;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* Container width */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-xl {
    max-width: 1400px;
    min-width: 1200px;
  }
}

/* ==========================================================
   3. LAYOUT: HEADER, LOGO, LINKS, FOOTER
   ========================================================== */
.header-bottom { border-bottom: none; }
.header-top    { border-bottom: none; }

.logo { max-width: 14.375rem; /* 230px */ }
@media (max-width: 61.9375rem) {
  .logo { max-width: 7.5rem !important; }
  .logo img {
    width: 100% !important;
    height: auto !important;
  }
}

a { color: #353F4A; }

.footer__main {
  background: #f5f5f5 !important;
  color: #333333;
}
.footer-block__title,
.footer-block__title a { color: #222222; }
.footer-block a { color: #555555; }
.footer-block a:hover { color: #A7B5C6; }
.copyright,
.copyright a { color: #888888; }
.copyright a:hover { color: #A7B5C6; }

/* ==========================================================
   4. CATEGORY SIDEBAR AND PRODUCT LISTINGS
   ========================================================== */
.ps-categorytree.category-tree.left-block {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
}
.left-block__title {
  background-color: #A7B5C6;
  padding: 10px;
  margin: -15px -15px 10px -15px;
  border-radius: 6px 6px 0 0;
}
.category-tree__item-link:hover { background-color: #9D9DCB; }

/* Hide category cover image on listing pages */
.page-category .category__cover { display: none; }

/* Hide quick view */
.product-miniature__quickview-button,
.product-miniature__quickview-touch,
.product-miniature__inner .product-miniature__quickview-button,
.product-miniature__inner:hover .product-miniature__quickview-button {
  display: none !important;
  transform: none !important;
}

/* Optional (currently disabled): hide add to cart on listings
.product-miniature__actions .product-miniature__form { display: none !important; }
*/

/* Product cards: light grey border, no hover shadow, no zoom */
.product-miniature__inner { border: 1px solid #e0e0e0; }

@media (hover: hover) {
  .product-miniature__inner:hover { box-shadow: none !important; }
  .product-miniature__inner:hover .product-miniature__image {
    transform: none !important;
    opacity: 0.85;
  }
  .product-miniature__inner:has(:focus-visible) { box-shadow: none !important; }
}

/* Product images: opacity fade on hover, no zoom */
.product-miniature .card-img-top,
.product-miniature__image,
.product-miniature .product-miniature__image,
.product-miniature .product-thumbnail img,
.product-miniature .product-thumbnail .card-img-top,
.product-miniature img,
.product__image,
.featured-products .card-img-top,
.featured-products img,
.new-products .card-img-top,
.new-products img,
.bestsellers .card-img-top,
.bestsellers img,
.category-products .card-img-top,
.category-products img {
  transition: opacity 0.3s ease !important;
  transform: none !important;
}

.product-miniature:hover .card-img-top,
.product-miniature:hover .product-miniature__image,
.product-miniature:hover .product-thumbnail img,
.product-miniature:hover .product-thumbnail .card-img-top,
.product-miniature:hover img,
.featured-products .product-miniature:hover .card-img-top,
.featured-products .product-miniature:hover img,
.new-products .product-miniature:hover .card-img-top,
.new-products .product-miniature:hover img,
.bestsellers .product-miniature:hover .card-img-top,
.bestsellers .product-miniature:hover img,
.category-products .product-miniature:hover .card-img-top,
.category-products .product-miniature:hover img {
  opacity: 0.85 !important;
  transform: none !important;
}

.product-miniature:hover .product-thumbnail,
.product-miniature:hover .card-img-top-wrapper,
.product-miniature:hover .product-miniature__image-container,
.featured-products .product-miniature:hover .product-thumbnail {
  transform: none !important;
}

/* Variant badge styling */
.ps-variant-btn {
  cursor: pointer;
  font-size: 0.75rem;
}
.ps-variant-btn.border-primary {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
  border-color: #2d2d2d !important;
}

/* ==========================================================
   5. QUOTATION MODULE, CART AND VOUCHER
   ========================================================== */
.roja45-listing-atq-wrapper { display: none !important; }

.roja45quotationspro_button_container .btn.add-to-quote {
  color: #ffffff !important;
}

#request-summary-content .flex-table .flex-row:first-of-type {
  z-index: 1 !important;
}

/* Hide the shopping cart (quote-only site) */
html body a[href*="/cart"].header-block__action-btn,
html body #_mobile_ps_shoppingcart,
html body #_desktop_ps_shoppingcart,
html body [id*="ps_shoppingcart"] {
  display: none !important;
  visibility: hidden !important;
}

/* Hide voucher fields */
.cart-voucher,
.cart-summary__voucher { display: none !important; }

/* Search results sit above the mega menu (.anmm-list uses z-index 11) */
.ps-searchbar__results { z-index: 12; }

/* ==========================================================
   6. BACK TO TOP BUTTON
   ========================================================== */
.back-to-top-link {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #A7B5C6;
  color: #ffffff;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

a.back-to-top-link,
a.back-to-top-link:not(:focus) {
  clip: auto !important;
  clip-path: none !important;
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  left: auto !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  overflow: visible !important;
  white-space: nowrap !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

a.back-to-top-link.visible {
  opacity: 1 !important;
  pointer-events: auto;
}

/* ==========================================================
   7. CASCADE LAYERS (Hummingbird)
   ========================================================== */
@layer ps-components {
  .product-miniature__infos { color: #3A3C3D; }
  a.product-miniature__title { color: #3A3C3D; }
  .product-miniature__price {
    color: #3A3C3D;
    font-weight: 700;
  }
  .add-to-cart {
    --bs-btn-bg:    #e63946;
    --bs-btn-color: #fff;
  }
  .product-miniature__name { font-weight: 600; }
}

@layer ps-pages {
  .page--index .hero { background-color: #f8f9fa; }
}

@layer ps-modules {
  .homepage-categories .category-card img {
    transition: transform 0.3s ease;
  }
  .homepage-categories .category-card:hover img {
    transform: scale(1.05);
  }
}

/* ==========================================================
   8. HOME PAGE TEXT BOXES (ps_hometext)
   ========================================================== */
.ps-hometext__quote-box {
  max-width: 800px;
  margin: 20px auto;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.ps-hometext__quote-box .ps-hometext__quote-note { margin: 0; }

.ps-hometext__discount-box {
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
}
.ps-hometext__discount-box .ps-hometext__subline { margin: 0; }

/* ==========================================================
   9. MEGA MENU (adtm): centred on desktop
   ========================================================== */
@media (min-width: 992px) {
  #adtm_menu ul#menu {
    display: flex !important;
    justify-content: center;
    width: 75% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #adtm_menu ul#menu li.li-niveau1 { float: none !important; }
}

/* ==========================================================
   10. CONTENT PAGES (gab-*)
   ========================================================== */

/* ---------- Home page: H1 in the custom HTML box ---------- */
.gab-h1 {
  max-width: 70rem;
  margin: 2rem auto 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}

/* ---------- Home page: information module (.gab-home) ---------- */
.gab-home {
  max-width: 70rem;
  margin: 0 auto 3rem;
  line-height: 1.65;
}
.gab-home h2 {
  position: relative;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.6rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--gab-border);
}
.gab-home h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3.5rem;
  height: 2px;
  background: var(--gab-accent);
}

.gab-lead {
  margin: 0 0 1rem;
  padding: 1.5rem;
  font-size: 1.125rem;
  background: var(--gab-tint);
  border-left: 4px solid var(--gab-accent);
  border-radius: 0 var(--gab-radius) var(--gab-radius) 0;
}

/* Category cards (whole card is clickable) */
.gab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gab-cards li {
  position: relative;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gab-border);
  border-top: 4px solid var(--gab-accent);
  border-radius: var(--gab-radius);
  transition: border-color 0.2s ease;
}
.gab-cards li:hover { border-color: var(--gab-accent); }
.gab-cards strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--gab-accent);
}
.gab-cards a { color: inherit; text-decoration: none; }
.gab-cards a:hover { text-decoration: underline; }
.gab-cards a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gab-cards li:focus-within {
  outline: 2px solid var(--gab-accent);
  outline-offset: 2px;
}

.gab-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0 2.5rem;
}

.gab-note {
  margin-top: 1.5rem;
  padding: 0.25rem 1.5rem 1.25rem;
  background: var(--gab-tint);
  border: 1px solid var(--gab-border);
  border-left: 4px solid var(--gab-accent);
  border-radius: var(--gab-radius);
}
.gab-note h2 {
  margin-top: 1.25rem;
  border-bottom: 0;
}
.gab-note h2::after { display: none; }
.gab-note p:last-child { margin-bottom: 0; }

.gab-supplier {
  margin-top: 2.5rem;
  padding: 0.25rem 1.5rem 1.5rem;
  color: #fff;
  background: var(--gab-accent);
  border-radius: var(--gab-radius);
}
.gab-supplier h2 {
  margin-top: 1.25rem;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}
.gab-supplier h2::after { background: #fff; }
.gab-supplier p:last-child { margin-bottom: 0; }
.gab-supplier a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Legal, Terms and Returns pages (.gab-legal) ---------- */
.gab-legal {
  max-width: 52rem;
  line-height: 1.7;
}
.gab-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.gab-legal-nav a {
  padding: 0.4rem 0.9rem;
  color: var(--gab-accent);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gab-border);
  border-radius: var(--gab-radius);
}
.gab-legal-nav a:hover { background: var(--gab-tint); }
.gab-legal-block { margin-bottom: 2rem; }
.gab-legal h2[id] { scroll-margin-top: 6rem; }
.gab-legal h2 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  font-size: 1.35rem;
  border-bottom: 2px solid var(--gab-border);
}
.gab-legal ol.gab-alpha {
  margin: 0 0 1rem;
  padding-left: 1.75rem;
  list-style-type: lower-alpha;
}
.gab-legal ol.gab-alpha li { padding: 0.3rem 0; }
.gab-legal ol.gab-alpha li::marker {
  content: counter(list-item, lower-alpha) ") ";
  font-weight: 600;
  color: var(--gab-accent);
}

/* ---------- Shipping page (.gab-shipping) ---------- */
.gab-shipping {
  max-width: 60rem;
  line-height: 1.7;
}
.gab-ship-lead {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.5rem;
  font-size: 1.125rem;
  background: var(--gab-tint);
  border-left: 4px solid var(--gab-accent);
  border-radius: 0 var(--gab-radius) var(--gab-radius) 0;
}
.gab-ship-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}
.gab-ship-card {
  padding: 0.25rem 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid var(--gab-border);
  border-top: 4px solid var(--gab-accent);
  border-radius: var(--gab-radius);
}
.gab-ship-card h2 {
  margin: 1.1rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--gab-accent);
}
.gab-ship-address {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: var(--gab-tint);
  border-radius: var(--gab-radius);
}
.gab-ship-phone { font-weight: 600; }
.gab-ship-phone a { color: var(--gab-accent); text-decoration: none; }
.gab-ship-phone a:hover { text-decoration: underline; }
.gab-ship-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  background: var(--gab-accent);
  border-radius: var(--gab-radius);
}
.gab-ship-btn:hover,
.gab-ship-btn:focus-visible { color: #fff; background: var(--gab-accent-dark); }

/* ---------- Technical Information page (.gab-tech) ---------- */
.gab-tech {
  max-width: 62rem;
  line-height: 1.7;
}
.gab-tech-block { margin-bottom: 2.5rem; }
.gab-tech h2[id] { scroll-margin-top: 6rem; }

.gab-tech h2 {
  position: relative;
  margin: 0 0 1.1rem;
  padding-bottom: 0.6rem;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--gab-border);
}
.gab-tech h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 3.5rem;
  height: 2px;
  background: var(--gab-accent);
}
.gab-tech h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.gab-tech h3 a { color: var(--gab-accent); text-decoration: none; }
.gab-tech h3 a:hover { text-decoration: underline; }
.gab-tech h3.gab-tech-sub {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
  color: var(--gab-accent);
}

.gab-tech-lead {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  background: var(--gab-tint);
  border-left: 4px solid var(--gab-accent);
  border-radius: 0 var(--gab-radius) var(--gab-radius) 0;
}

/* Jump links */
.gab-tech-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.gab-tech-nav a {
  padding: 0.4rem 0.9rem;
  color: var(--gab-accent);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gab-border);
  border-radius: var(--gab-radius);
}
.gab-tech-nav a:hover { background: var(--gab-tint); }

/* Download list with PDF icons */
.gab-tech-files { margin: 0; padding: 0; list-style: none; }
.gab-tech-files li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid var(--gab-border);
}
.gab-tech-files li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.9rem;
  height: 2.4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath fill='%23d93025' d='M4 0h18l10 10v26a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z'/%3E%3Cpath fill='%23f4a39c' d='M22 0l10 10h-6a4 4 0 0 1-4-4z'/%3E%3Ctext x='16' y='31' font-family='Arial,Helvetica,sans-serif' font-size='10' font-weight='700' fill='white' text-anchor='middle'%3EPDF%3C/text%3E%3C/svg%3E") no-repeat center / contain;
}
.gab-tech-files a {
  color: var(--gab-accent);
  font-weight: 600;
  text-decoration: none;
}
.gab-tech-files a:hover { text-decoration: underline; }
.gab-tech-files span { display: block; font-size: 0.95rem; }

/* Online guide cards */
.gab-tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gab-tech-cards li { display: flex; }
.gab-tech-cards a {
  display: block;
  width: 100%;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gab-border);
  border-top: 4px solid var(--gab-accent);
  border-radius: var(--gab-radius);
  transition: border-color 0.2s ease;
}
.gab-tech-cards a:hover,
.gab-tech-cards a:focus-visible { border-color: var(--gab-accent); }
.gab-tech-cards strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gab-accent);
}
.gab-tech-cards span { display: block; font-size: 0.95rem; }

/* Two-up boxes */
.gab-tech-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.gab-tech-box {
  padding: 1.25rem 1.5rem;
  background: var(--gab-tint);
  border: 1px solid var(--gab-border);
  border-radius: var(--gab-radius);
}
.gab-tech-box p:last-child { margin-bottom: 0; }

/* Checklist */
.gab-tech-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.gab-tech-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.9rem;
}
.gab-tech-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.3rem;
  height: 1.3rem;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.3rem;
  text-align: center;
  background: var(--gab-accent);
  border-radius: var(--gab-radius);
}

.gab-tech-note {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: #fff;
  border-left: 4px solid var(--gab-border);
}

/* Contact banner */
.gab-tech-cta {
  padding: 0.25rem 1.5rem 1.5rem;
  color: #fff;
  background: var(--gab-accent);
  border-radius: var(--gab-radius);
}
.gab-tech-cta h2 {
  margin-top: 1.25rem;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.gab-tech-cta h2::after { background: #fff; }
.gab-tech-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  color: var(--gab-accent);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border-radius: var(--gab-radius);
}
.gab-tech-btn:hover,
.gab-tech-btn:focus-visible { color: var(--gab-accent-dark); background: var(--gab-tint); }

/* ---------- Small screens and reduced motion (all gab-* pages) ---------- */
@media (max-width: 575.98px) {
  .gab-lead { padding: 1.1rem; font-size: 1.05rem; }
  .gab-tech-lead { padding: 1rem 1.1rem; font-size: 1.05rem; }
  .gab-note,
  .gab-supplier,
  .gab-tech-cta { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gab-cards li,
  .gab-tech-cards a { transition: none; }
}