/* 1. TOKENS ================================================================
   Change a value here and every gosh- component updates.                   */
:root {
  /* Brand — values come from the Figma styles */
  --gosh-blue:    var(--evo-brand-default, #38b6ff);  /* follows theme if set */
  --gosh-navy:    #1f2a37;
  --gosh-surface: #f5f7fa;
  --gosh-maroon:  #8d103c;

  /* ACCESSIBILITY SWITCHES
     #38b6ff is only ~2.2:1 against white / #f5f7fa (WCAG AA needs 4.5:1 for
     text, 3:1 for large text). So by default:
       - blue TEXT on light backgrounds uses a darker blue  (5.6:1)
       - text ON a blue fill is navy                       (6.5:1)
     For a 1:1 match with Figma, set:
       --gosh-link:    var(--gosh-blue);
       --gosh-on-blue: #fff;                                                */
  --gosh-link:    #38B6FF;
  --gosh-on-blue: var(--gosh-navy);

  /* Layout */
  --gosh-max:       1800px;                       /* content max width     */
  --gosh-gutter:    clamp(16px, 3vw, 56px);       /* page side padding     */
  --gosh-gap:       clamp(12px, 1vw, 18px);       /* gap between tiles     */
  --gosh-space:     clamp(28px, 3.6vw, 72px);     /* vertical rhythm       */
  --gosh-radius:    10px;
  --gosh-radius-sm: 6px;

  /* Fluid type — caps are slightly below the 1920px Figma sizes
     (body 24px → 20px, titles 26px stay, 64px hero stays).
     Raise --gosh-fs-body to 24px if you want 1:1.                        */
  --gosh-fs-hero: clamp(36px, 22.4px + 2.6vw, 64px);          /* ≤ 64px */
  --gosh-fs-h2:   clamp(28px, 22.4px + 1vw, 40px);          /* ≤ 40px */
  --gosh-fs-h3:   clamp(18px, 16px + 0.5vw, 26px);       /* ≤ 26px */
  --gosh-fs-cta:  clamp(16px, 15.2px + 0.2vw, 20px);         /* ≤ 20px */
  --gosh-fs-body: clamp(16px, 15.04px + 0.25vw, 20px);        /* ≤ 20px */
  --gosh-body-weight: 300;   /* Figma uses Sora Light. If Light isn't loaded
                                on the site it falls back to Regular.       */

  /* Navy fade over hero tile photos. The designer's exports already have the
     fade baked in, so it is OFF (none). If you switch to un-faded photos, set:
     --gosh-tile-fade: linear-gradient(180deg, rgb(31 42 55 / 0) 38%, #1f2a37 100%); */
  --gosh-tile-fade: none;

  /* Arrow icon used by every "Shop all →" / "Find out more →" */
  --gosh-arrow-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* 2. LAYOUT UTILITIES =======================================================
   Put  gosh-wrap  in the WIDGET CSS class field of every widget on the page
   (HTML widgets AND native ones) so they all share one width and gutter.
   Put  gosh-band  in the ROW CSS class field for a full-width grey band.    */
/* Doubled class + !important on purpose: EvoX native widgets (Recently Viewed
   etc.) carry theme rules that zero their padding, and this is the only
   reliable way to out-rank them.                                           */
.gosh-wrap.gosh-wrap {
  float: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: calc(var(--gosh-max) + 2 * var(--gosh-gutter)) !important;
  margin-inline: auto !important;
  padding-inline: var(--gosh-gutter) !important;
}

.gosh-band {
  background: var(--gosh-surface);
}

/* Root element of every gosh HTML widget: vertical spacing + the container
   that all component container-queries measure against.                    */
.gosh-block {
  container: gosh-block / inline-size;
  width: 100%;
  padding-block: calc(var(--gosh-space) / 2);
}

/* Section heading (h2). Class beats the theme's bare h2 rule.              */
.gosh-block .gosh-title {
  margin: 0 0 clamp(16px, 2cqw, 32px);
  color: var(--gosh-navy);
  font-size: var(--gosh-fs-h2);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

/* Screen-reader-only text */
.gosh-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Arrow icon: inherits the text colour of whatever it sits in */
.gosh-arrow {
  display: inline-block;
  flex: none;
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--gosh-arrow-img) center / contain no-repeat;
          mask: var(--gosh-arrow-img) center / contain no-repeat;
}

/* Large button modifier — use together with the platform classes:
   <a class="btn btn-primary gosh-btn--lg">                                  */
.gosh-btn--lg {
  min-width: min(100%, 320px);
  padding-block: 1.1em;
  font-size: var(--gosh-fs-cta);
  font-weight: 700;
  text-align: center;
}

.btn {
  border-width: 0;
}

.btn-primary:hover {
  background-color:#1F2A37;
}

/* "Special offer!" style label (reusable on any card/image corner) */
.gosh-badge {
  position: absolute;
  z-index: 2;
  top: clamp(16px, 3.4cqw, 32px);
  left: 0;
  max-width: 65%;
  margin: 0;
  padding: 0.5em 1em 0.5em 0.9em;
  border-radius: 0 2px 2px 0;
  background: var(--gosh-blue);
  color: var(--gosh-on-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.gosh-badge:empty { display: none; }   /* blank variable = no badge */


/* 3. USP BAR ================================================================ */
.gosh-block .gosh-usp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px var(--gosh-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gosh-block .gosh-usp__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2cqw, 20px);
  margin: 0;
  color: var(--gosh-navy);
  font-size: var(--gosh-fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.gosh-block .gosh-usp__icon {
  flex: none;
  width: clamp(32px, 3.2cqw, 58px);
  height: auto;
}
@container gosh-block (max-width: 900px) {
  .gosh-block .gosh-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gosh-block .gosh-usp__item { justify-content: flex-start; font-size: 16px; }
}
@container gosh-block (max-width: 420px) {
  .gosh-block .gosh-usp__item { font-size: 15px; }
}


/* 4. HERO — 4-tile bento ====================================================
   Desktop : big tile left, wide tile top-right, two small tiles below it.
   Tablet  : big tile full width, wide tile full width, two small side by side.
   Mobile  : single column.                                                  */
.gosh-hero__grid {
  display: grid;
  gap: var(--gosh-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 312fr 231fr;
  grid-template-areas:
    "main main a a"
    "main main b c";
  min-height: clamp(416px, 31cqw, 560px);
}

.gosh-hero__main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(14px, 2cqw, 32px);
  padding: clamp(20px, 3cqw, 56px);
  border-radius: var(--gosh-radius);
  background: var(--gosh-navy);
  color: #fff;
}
.gosh-block .gosh-hero__eyebrow {
  margin: 0;
  color: var(--gosh-blue);          /* blue on navy = 6.5:1, passes */
  font-size: var(--gosh-fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.gosh-block .gosh-hero__title {
  max-width: 14em;
  margin: 0;
  color: #fff;
  font-size: var(--gosh-fs-hero);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.gosh-hero__a { grid-area: a; }
.gosh-hero__b { grid-area: b; }
.gosh-hero__c { grid-area: c; }

/* Image tile (whole tile is one link) */
.gosh-block .gosh-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 192px;
  overflow: hidden;
  border-radius: var(--gosh-radius);
  background: var(--gosh-navy);
  color: #fff;
  text-decoration: none;
}
.gosh-tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Optional navy fade (see --gosh-tile-fade in the tokens) */
.gosh-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gosh-tile-fade);
}
.gosh-tile__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: clamp(14px, 1.6cqw, 26px);
}
.gosh-tile__title {
  font-size: var(--gosh-fs-h3);
  font-weight: 700;
  line-height: 1.15;
}
.gosh-hero__a .gosh-tile__title { font-size: clamp(22px, 16px + 1cqw, 32px); }
.gosh-tile .gosh-arrow { width: clamp(24px, 2.4cqw, 40px); height: clamp(24px, 2.4cqw, 40px); }
.gosh-tile:focus-visible { outline: 3px solid var(--gosh-blue); outline-offset: 3px; }

@container gosh-block (max-width: 900px) {
  .gosh-hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "main main"
      "a a"
      "b c";
    min-height: 0;
  }
  .gosh-hero__a { min-height: 224px; }
}
@container gosh-block (max-width: 560px) {
  .gosh-hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "a" "b" "c";
  }
}


/* 5. PROMO BANNERS ("Our Services") =========================================
   Two (or more) side-by-side cards; each card stacks image-over-text when
   the CARD itself gets narrow.                                              */
.gosh-promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gosh-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container gosh-block (max-width: 760px) {
  .gosh-promos { grid-template-columns: 1fr; }
}
.gosh-promo-cell { container: gosh-card / inline-size; margin: 0; }

.gosh-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
  min-height: clamp(208px, 33cqw, 288px);
  overflow: hidden;
  border-radius: var(--gosh-radius);
  background: var(--gosh-surface);
}
.gosh-promo__media {
  position: relative;
  margin: 6px 0 6px 6px;
  overflow: hidden;
  border-radius: var(--gosh-radius) 0 0 var(--gosh-radius);
}
.gosh-promo__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gosh-promo__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 4.5cqw, 40px);
}
.gosh-block .gosh-promo__title {
  margin: 0;
  color: var(--gosh-navy);
  font-size: var(--gosh-fs-h3);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}
/* The title link is stretched over the whole card → one big click target,
   one descriptive link per card for screen readers and search engines.     */
.gosh-block .gosh-promo__link { color: inherit; text-decoration: none; }
.gosh-promo__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gosh-promo__link:focus-visible { outline: none; }
.gosh-promo__link:focus-visible::after {
  outline: 3px solid var(--gosh-blue);
  outline-offset: 3px;
  border-radius: var(--gosh-radius);
}
.gosh-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--gosh-link);
  font-size: var(--gosh-fs-cta);
  font-weight: 700;
}

@container gosh-card (max-width: 540px) {
  .gosh-promo { grid-template-columns: 1fr; }
  .gosh-promo__media {
    margin: 6px 6px 0;
    border-radius: var(--gosh-radius) var(--gosh-radius) 0 0;
    aspect-ratio: 16 / 9;
  }
}


/* 6. CATEGORY CARDS ("Shop by Category") ====================================
   5 across on desktop, 3 on tablet, 2 on mobile. Orphans are centred.       */
.gosh-block .gosh-cats {
  --cols: 5;
  --cat-gap: clamp(12px, 1.2vw, 22px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cat-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container gosh-block (max-width: 1100px) { .gosh-block .gosh-cats { --cols: 3; } }
@container gosh-block (max-width: 620px)  { .gosh-block .gosh-cats { --cols: 2; } }

.gosh-block .gosh-cat {
  position: relative;
  display: flex;
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--cat-gap)) / var(--cols));
  flex-direction: column;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 10px 10px clamp(16px, 1.8cqw, 28px);
  border-radius: var(--gosh-radius);
  background: var(--gosh-surface);
  text-align: center;
}
.gosh-cat__media {
  width: 100%;
  overflow: hidden;
  border-radius: var(--gosh-radius-sm);
}
.gosh-cat__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 321 / 265;
  object-fit: cover;
}
.gosh-block .gosh-cat__title {
  margin: clamp(12px, 1.4cqw, 24px) 0 0;
  color: var(--gosh-navy);
  font-size: var(--gosh-fs-h3);
  font-weight: 700;
  line-height: 1.2;
}
.gosh-block .gosh-cat__link { color: inherit; text-decoration: none; }
.gosh-cat__link::after { content: ""; position: absolute; inset: 0; }
.gosh-cat__link:focus-visible { outline: none; }
.gosh-cat__link:focus-visible::after {
  outline: 3px solid var(--gosh-blue);
  outline-offset: 3px;
  border-radius: var(--gosh-radius);
}
.gosh-cat__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: auto;
  padding-top: clamp(10px, 1.2cqw, 20px);
  color: var(--gosh-link);
  font-size: var(--gosh-fs-cta);
  font-weight: 700;
}


/* 7. STORY ("The Story Behind GOSH Office") =================================  */
.gosh-story {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: clamp(24px, 5cqw, 96px);
  align-items: center;
}
@container gosh-block (max-width: 820px) {
  .gosh-story { grid-template-columns: 1fr; }
}
.gosh-story__media { margin: 0; }
.gosh-story__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 710 / 628;
  object-fit: cover;
  border-radius: var(--gosh-radius);
}
.gosh-story__body { max-width: 736px; }
.gosh-block .gosh-story__body p {
  margin: 0 0 1em;
  color: var(--gosh-navy);
  font-size: var(--gosh-fs-body);
  font-weight: var(--gosh-body-weight);
  line-height: 1.55;
}
.gosh-block .gosh-story__body .btn { margin-top: 0.5em; }

/* "Read more +" — native <details>, no JavaScript, content stays in the
   page source for search engines.                                           */
.gosh-more > summary {
  display: inline-flex;
  gap: 0.4em;
  margin-bottom: 1em;
  color: var(--gosh-link);
  font-size: var(--gosh-fs-cta);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.gosh-more > summary::-webkit-details-marker { display: none; }
.gosh-more > summary::after { content: "+"; }
.gosh-more[open] > summary::after { content: "\2212"; }
.gosh-more:not([open]) .gosh-more__less,
.gosh-more[open] .gosh-more__more { display: none; }
.gosh-more > summary:focus-visible {
  outline: 3px solid var(--gosh-blue);
  outline-offset: 3px;
}

/* Smooth-scroll to the enquiry form, only on pages that use the story block */
@media (prefers-reduced-motion: no-preference) {
  html:has(.gosh-story) { scroll-behavior: smooth; }
}
#start-working-with-us { scroll-margin-top: var(--gosh-anchor-offset, 120px); }


/* 8. BRAND LOGOS ("Shop by brand") ========================================= */
.gosh-block .gosh-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 2cqw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gosh-block .gosh-brands > li {
  flex: 0 0 clamp(130px, 14cqw, 200px);
  margin: 0;
}
.gosh-block .gosh-brand {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 2;
  padding: 12% 14%;
  border-radius: var(--gosh-radius-sm);
  background: var(--gosh-surface);
}
.gosh-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Hides white boxes on logos exported with a white background.
     Remove once every logo is a transparent SVG/PNG.                        */
  mix-blend-mode: multiply;
}
.gosh-brand:focus-visible { outline: 3px solid var(--gosh-blue); outline-offset: 3px; }


/* 9. MOTION (only when the visitor hasn't asked for reduced motion) ======= */
@media (prefers-reduced-motion: no-preference) {
  .gosh-tile__img,
  .gosh-promo__media img,
  .gosh-cat__img { transition: transform 0.5s ease; }
  .gosh-arrow    { transition: transform 0.2s ease; }
  .gosh-cat      { transition: box-shadow 0.2s ease; }
  .gosh-brand    { transition: box-shadow 0.2s ease, background-color 0.2s ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gosh-tile:hover .gosh-tile__img,
  .gosh-promo:hover .gosh-promo__media img,
  .gosh-cat:hover .gosh-cat__img { transform: scale(1.05); }
  .gosh-tile:hover .gosh-arrow,
  .gosh-promo:hover .gosh-arrow,
  .gosh-cat:hover .gosh-arrow { transform: translateX(4px); }
  .gosh-cat:hover { box-shadow: 0 8px 24px rgb(31 42 55 / 0.1); }
  .gosh-brand:hover { background: #fff; box-shadow: 0 4px 16px rgb(31 42 55 / 0.12); }
}


/* 10. NATIVE PRODUCT TILES (latest offers, recently viewed, any product widget)
   ===========================================================================
   EvoX renders every product the same way (.tileparent.product > .tile), so
   one set of rules restyles all of them, and price / RRP / savings stay LIVE.

   Widget CSS class:   gosh-tiles                 compact card, no basket
                       gosh-tiles gosh-tiles--buy  same card + qty & Add to basket

   !important is used throughout this section ON PURPOSE: the platform's own
   tile CSS is very specific, and this is the only reliable way to out-rank
   it without editing the theme. Everything is scoped to .gosh-tiles, so
   product listing pages and search results are untouched.                  */

/* 10a. Widget title (native h2/h3) looks like .gosh-title.
   Same rule serves gosh-tiles (product widgets) and gosh-native (others).   */
.gosh-native :is(h2, h3),
.gosh-tiles .clearfix > :is(h2, h3) {
  margin: 0 0 clamp(16px, 2cqw, 32px) !important;
  color: var(--gosh-navy) !important;
  font-size: var(--gosh-fs-h2) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

/* 10b. The card */
.gosh-tiles .tileparent.product { height: 100% !important; }
.gosh-tiles .tile {
  position: relative !important;           /* anchors the "Save %" label */
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding: 14px 14px 18px !important;
  border: 0 !important;
  border-radius: var(--gosh-radius) !important;
  background: var(--gosh-surface) !important;
  box-shadow: none !important;
}

/* The platform's wrappers: neutralise inline equal-heights, positioning, etc. */
.gosh-tiles :is(.footer, .footer-wrapper, .footer-wrapper-description,
                .footer-wrapper-price, .price-area, .rrp) {
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.gosh-tiles :is(.footer, .footer-wrapper) {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}
.gosh-tiles .footer-wrapper-price { margin-top: auto !important; }   /* prices sit at the bottom */

/* Hide what the compact card doesn't use (all still in the page source) */
.gosh-tiles :is(
  .brand-label, .indicators-grid, .product-sku, .product-category,
  .product-points, .uom, .multiple-uom, .multiple-uom-label,
  .divquickview, .buttons, .product-compare-action, .rrp > span
) { display: none !important; }

/* Image: filled absolutely so it never collapses */
.gosh-tiles .product-tile-image {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}
.gosh-tiles .product-tile-image .text-center { display: block !important; }
.gosh-tiles .imgthumbnail {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
}
.gosh-tiles .imgthumbnail .thumb-align { display: none !important; }
.gosh-tiles .imgthumbnail img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;          /* product photos have white backgrounds */
}

/* Name (2 lines max) */
.gosh-tiles .product-name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  min-height: 2.7em;
  margin: 0 0 10px !important;
  overflow: hidden;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
.gosh-tiles .product-name a {
  color: var(--gosh-navy) !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-decoration: none !important;
}
.gosh-tiles .product-name a:hover,
.gosh-tiles .product-name a:focus-visible { text-decoration: underline !important; }

/* Price (live) + VAT price */
.gosh-tiles .price-label {
  margin: 0 !important;
  color: var(--gosh-link) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
.gosh-tiles .price-label-inc-vat {
  display: block !important;
  margin: 2px 0 0 !important;
  color: var(--gosh-navy) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
.gosh-tiles .price-label-inc-vat * {
  display: inline !important;
  color: inherit !important;
  font-size: inherit !important;
}

/* Saving label: "43%" → "Save 43%", pinned to the card's top-left corner */
.gosh-tiles .rrp .label.save {
  position: absolute !important;
  z-index: 2;
  top: 18px;
  left: 0;
  margin: 0 !important;
  padding: 0.5em 0.9em !important;
  border-radius: 0 2px 2px 0 !important;
  background: var(--gosh-blue) !important;
  color: var(--gosh-on-blue) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.gosh-tiles .rrp .label.save::before { content: "Save "; }
.gosh-tiles .rrp .label.save:not(.with-value) { display: none !important; }

/* 10c. OPTIONAL: show live stock under the price ("899 In Stock").
   Un-comment to switch on; it re-shows only the stock line from .buttons.

.gosh-tiles:not(.gosh-tiles--buy) .buttons { display: block !important; height: auto !important; margin-top: 6px !important; }
.gosh-tiles:not(.gosh-tiles--buy) .buttons > *,
.gosh-tiles:not(.gosh-tiles--buy) .buttons .btn-add-to-cart { display: none !important; }
.gosh-tiles:not(.gosh-tiles--buy) .buttons .live-inventory-v2-add-to-cart-wrapper,
.gosh-tiles:not(.gosh-tiles--buy) .buttons .live-inventory-v2-wrapper { display: block !important; }
.gosh-tiles .live-inventory-v2-shipping { font-size: 13px; font-weight: 700; }
.gosh-tiles .live-inventory-v2-shipping.in-stock::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em;
  border-radius: 50%; background: #1a9b4b;
}
*/

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gosh-tiles .tile { transition: box-shadow 0.2s ease; }
  .gosh-tiles .tile:hover { box-shadow: 0 8px 24px rgb(31 42 55 / 0.1) !important; }
}

/* 10d. "Buy" variant (Recently Viewed): keeps quantity + Add to basket ====== */
.gosh-tiles.gosh-tiles--buy .buttons {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  height: auto !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
}
.gosh-tiles--buy .buttons .live-inventory-v2-add-to-cart-wrapper { display: contents !important; }
.gosh-tiles--buy .buttons .live-inventory-v2-wrapper,
.gosh-tiles--buy .buttons .addtoquicklist-wrapper { display: none !important; }
.gosh-tiles--buy .buttons .qty-list {
  width: 56px !important;
  height: 38px !important;
  padding: 0 6px !important;
  text-align: center;
}
.gosh-tiles--buy .buttons .btn-add-to-cart { margin: 0 !important; }

/* 10e. Whole card is clickable (compact cards only) ========================
   The product-name link is stretched over the card; it stays one link for
   screen readers.                                                          */
.gosh-tiles:not(.gosh-tiles--buy) .product-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gosh-tiles:not(.gosh-tiles--buy) .product-name a:focus-visible { outline: none; }
.gosh-tiles:not(.gosh-tiles--buy) .product-name a:focus-visible::after {
  outline: 3px solid var(--gosh-blue);
  outline-offset: 3px;
  border-radius: var(--gosh-radius);
}


/* 11. NATIVE BRANDS WIDGET (carousel) =======================================
   WIDGET CSS class:  gosh-native   (title matches the other headings via 10a)
   Every logo sits in the same grey tile, like the Figma design. The logos are
   JPGs with white backgrounds, which "multiply" blends into the grey.       */
.gosh-native .brandmerchandising-carousel .owl-item .tile.item {
  margin-inline: clamp(6px, 0.8cqw, 14px) !important;     /* gap between tiles */
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--gosh-radius-sm) !important;
  background: var(--gosh-surface) !important;
  overflow: hidden;
}
.gosh-native .brandmerchandising-carousel .tile.item a { display: block !important; }
.gosh-native .brandmerchandising-carousel .imgthumbnail {
  position: relative !important;
  display: block !important;
  height: auto !important;
  aspect-ratio: 5 / 2;
  margin: 0 !important;
  padding: 0 !important;
}
.gosh-native .brandmerchandising-carousel .imgthumbnail img {
  position: absolute !important;
  inset: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 8px 14px !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
}


/* 12. LATEST OFFERS (live product loader, widget 08) ======================== */
.gosh-offers[hidden] { display: none; }
.gosh-offers__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gosh-gap);
}
/* reserve space while the products load, so the page doesn't jump */
.gosh-offers:not([data-gosh-state="ready"]) .gosh-offers__grid { min-height: clamp(260px, 20cqw, 380px); }

@container gosh-block (max-width: 1299px) {
  .gosh-offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phones: swipeable row instead of a tall stack */
@container gosh-block (max-width: 699px) {
  .gosh-offers__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(72%, 260px);
    overflow-x: auto;
    padding-bottom: 8px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
  }
  .gosh-offers__grid > * { scroll-snap-align: start; }
}


/* 13. NEWSLETTER (native Subscription widget) ===============================
   The old rules were tied to widget IDs (#newsletters_303241, _311924 ...), so
   every new page's widget needed another copy and the test page's widget
   (#newsletters_321665) got none. These use the widget's own class instead,
   so they apply to EVERY native newsletter widget, on any page, in any row.
   Once this is live you can delete all the #newsletters_… rules.            */
.newsletters_container .subscr-widget > .container > .row {
  background: var(--gosh-maroon);
  color: #fff;
}
@media (min-width: 769px) {
  .newsletters_container .subscr-widget .row {
    flex-direction: row-reverse;
    align-items: center;
  }
}
.newsletters_container .subscr-widget .desc-wrapper > p {
  padding-right: 7vw;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 2em;
}

/* The maroon row class: the old rule sat inside a (min-width: 769px) block,
   so on mobile the band had no background. This one applies at every width. */
.maroonback { background: var(--gosh-maroon); }

.ex-name-kascaidtest .page-content {
    margin-bottom: 0px;
    margin-top: 0px;
}






:root {
  /*
  --evo-brand-secondary: #1B9473;
  --evo-brand-accent: #E6EFFB;
  --evo-header-background: #fff;
  https://www.goshprojects.co.uk/wp-content/uploads/2023/10/Gosh-Projects-Logo.png
  */
  --gosh-project: #8D103C;

}

.footer {
    color: white;
}

footer .logo {
    border-bottom: none;
}

.header-full .logo img {
/* Change this for desktop */
    max-width: 200px !important;
    height: auto !important;
    max-height: none !important;
}
nav.menu .catalog-block .catalog > li.menu-goshprojects > a {
background: url("https://www.goshprojects.co.uk/wp-content/uploads/2023/10/Gosh-Projects-Logo.png");
  background-size: 50px;
  background-position: center;
  background-repeat: no-repeat;
  width: 85px;
  color: transparent;
}

nav.menu .catalog-block ul.catalog>li>a {
  color: white;
}

nav.menu .catalog-block ul.catalog>li>a:hover {
  color: white;
  opacity: .8;
}

nav.menu .catalog-block .catalog > li.menu-goshprojects > a:hover{
  color: transparent;
  border-color: var(--gosh-project);
}

.header-flex [role=row-wrapper]>.row {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 1366px) {
  .header-full .menu .catalog > li:nth-child(n+8) {
    display: revert;
  }
}
.header-full .headersection-1 {
  padding: 1em 3em 0;
}
.headersection-1 a {
  color: #404040;
  font-size: 0.85rem;
  text-align: right;
  font-weight: 700;
}
.headersection-1 a:hover {
  text-decoration: underline;
}
.headersection-1 a span {
  margin-right: 5px;
  font-size: 0.75rem;
}
.dealer-details {
  display: flex;
  justify-content: flex-end;
}

.header-links .gosh-projects {
  color: var(--gosh-project);
}
.not-visible {
display: none;
height: 440px;
  position: relative;
}
.ex-u-2000692 .not-visible {
display: revert;
}

#shoppingtools_275944 > div > div {
  justify-content: space-evenly!important;
}

#shoppingtools_275944 {
  color: white;
}

header section.search .search-form .form-group input {
  border-radius: 25px;
  background: #ffffff2b;
  color: white;
}

header section.search .search-form button[type=submit] i {
    color: white;
}

header .minicart_container .cart-btn>a.btn .minicart_count {
    background: #38b6ff;
}


/*padding*/

.paddinglr {
    padding-left: 13vw;
    padding-right: 13vw;
}

.paddingslr {
    padding-left: 5vw;
    padding-right: 5vw;
}

.paddingl {
    padding-left: 13vw;
}

.paddingtb {
  padding-top: 2vw;
  padding-bottom: 2vw;
}

.paddingt {
    padding-top: 2vw;
}

.paddingt2 {
    padding-top: 3vw;
}

.paddingtb5 {
    padding-top: 5vw;
  padding-bottom: 2vw;
}

.paddingb {
    padding-bottom: 2vw;
}

.paddingsr {
    padding-right: 5vw;
}

@media (min-width: 769px) {
.w25 > div > div {
  width: 25%;
}
}

/* kascaid homepage- test page tags to be changed when live */

.ex-name-kascaidtest > div.page-content.onecolumn > section.catalog-grid > div, .ex-home > div.desktop > div {
  width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.ex-name-kascaidtest .breadcrumb {
display: none;
margin-bottom: 0px;
}

.ex-name-kascaidtest .row-breadcrumb {
margin-bottom: 0px;
}

.ex-name-kascaidtest .catalog-grid {
  margin-top: 0px;
}

.ex-home > div.desktop > div {
  margin-bottom: 0px;
}

.ex-home > section.zonetop > div {
  margin-bottom: 0px;
}

.dblueback {
  background: #1F2A37;
}

.greyback {
  background: #F6F7FB;
}

@media (min-width: 769px) {
.dflexcent > div {
	display: flex;
  	align-items: center;
}
  
#singlebanner_303213 > div > div > img.responsive.deskimg {
  margin-left: -6vw;
}
  
#newsletters_303241 .subscr-widget .row {  
  flex-direction: row-reverse;
  align-items: anchor-center;
}


#newsletters_311924 .subscr-widget .row {  
  flex-direction: row-reverse;
  align-items: anchor-center;
}


#newsletters_315541 .subscr-widget .row {  
  flex-direction: row-reverse;
  align-items: anchor-center;
}
}

@media (min-width: 769px) {
.dflexcent1 {
	display: flex;
  	align-items: center;
}
}

.nomargin {
margin-bottom: 0vw !important; 
  margin-top: 0vw !important; 
}

#contentblock_303214 p {
  font-size: 1.3em;
}

#contentblock_303238 p {
  font-size: 1.3em;
}

@media (min-width: 769px) {
#contentblock_303217, #contentblock_303218, #contentblock_303219, #contentblock_303220 {
width: 25%;
}
#contentblock_303224, #contentblock_303225, #contentblock_303226, #contentblock_303227 {
width: 25%;
}
  
.maroonback {
  background: #8D103C;
}
  
#newsletters_303241 > section > div > div {
  background: #8D103C;
    color: #fff;
}


#newsletters_311924 > section > div > div {
  background: #8D103C;
    color: #fff;
}
  
#newsletters_315541 > section > div > div {
  background: #8D103C;
    color: #fff;
}
  
  #newsletters_320533 > section > div > div {
  background: #8D103C;
    color: #fff;
}


#newsletters_320505 > section > div > div {
  background: #8D103C;
    color: #fff;
}
}

/* ===============================
   RESPONSIVE CATEGORY CARD GRID
   =============================== */

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
}

/* Background image */
.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Top-right icon */
.category-card__icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

/* Bottom overlay */
.category-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0% 5% 5% 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0)
  );

  box-sizing: border-box;
}

/* Title */
.category-card__title {
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 600;
  line-height: 1.2;

  flex: 1 1 auto;
  min-width: 0;
}

/* BUTTON WRAPPER (CRITICAL FIX) */
.category-card__btn {
  flex: 0 0 auto;
  max-width: 45%;
  display: flex;
  justify-content: flex-end;
}

/* BUTTON ITSELF (CRITICAL FIX) */
.category-card__btn a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto !important;
  max-width: 100%;

  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;

  white-space: nowrap;
  box-sizing: border-box;
}
  
/* =========================================
   CATEGORY CARDS: REMOVE BUTTON BORDER ONLY
   ========================================= */

.category-card .btn.btn-primary.btn-list {
  border: none !important;
  box-shadow: none !important;
}

/* Optional: ensures no hover border returns */
.category-card .btn.btn-primary.btn-list:hover,
.category-card .btn.btn-primary.btn-list:focus {
  border: none !important;
  box-shadow: none !important;
}

/*Secure shredding */

.ex-name-secureshredding > div.page-content.onecolumn > section.catalog-grid > div, .ex-home > div.desktop > div {
  width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.ex-name-secureshredding .breadcrumb {
display: none;
margin-bottom: 0px;
}

.ex-name-secureshredding .row-breadcrumb {
margin-bottom: 0px;
}

.ex-name-secureshredding .catalog-grid {
  margin-top: 0px;
}

.ex-name-secureshredding > div.page-content.onecolumn {
    margin-bottom: 0;
    margin-top: 0;
}

.ex-name-secureshredding p {
  font-size: 1.2em;
}

#newsletters_311924 > section > div > div > div.col.col-lg-4.col-md-4.col-sm-4.col-lg-offset-1.desc-wrapper > p {
  font-size: 1.5em;
    font-weight: 700;
    padding-right: 7vw;
    line-height: 2em;
}

#newsletters_303241 > section > div > div > div.col.col-lg-4.col-md-4.col-sm-4.col-lg-offset-1.desc-wrapper > p {
  font-size: 1.5em;
    font-weight: 700;
    padding-right: 7vw;
    line-height: 2em;
}

/*Education*/

.ex-category-educationalsupplies > div.page-content.onecolumn > section.catalog-grid > div, .ex-home > div.desktop > div {
  width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.ex-category-educationalsupplies .breadcrumb {
display: none;
margin-bottom: 0px;
}

.ex-category-educationalsupplies .row-breadcrumb {
margin-bottom: 0px;
}

.ex-category-educationalsupplies .catalog-grid {
  margin-top: 0px;
}

.ex-category-educationalsupplies > div.page-content.onecolumn {
    margin-bottom: 0;
    margin-top: 0;
}

#newsletters_315541 > section > div > div > div.col.col-lg-4.col-md-4.col-sm-4.col-lg-offset-1.desc-wrapper > p {
  font-size: 1.5em;
    font-weight: 700;
    padding-right: 7vw;
    line-height: 2em;
}

/*Print*/

.ex-name-printing > div.page-content.onecolumn > section.catalog-grid > div, .ex-home > div.desktop > div {
  width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.ex-name-printing .breadcrumb {
display: none;
margin-bottom: 0px;
}

.ex-name-printing .row-breadcrumb {
margin-bottom: 0px;
}

.ex-name-printing .catalog-grid {
  margin-top: 0px;
}

.ex-name-printing > div.page-content.onecolumn {
    margin-bottom: 0;
    margin-top: 0;
}

#newsletters_320505 > section > div > div > div.col.col-lg-4.col-md-4.col-sm-4.col-lg-offset-1.desc-wrapper > p {
  font-size: 1.5em;
    font-weight: 700;
    padding-right: 7vw;
    line-height: 2em;
}

/*Special Offers*/

.ex-name-specialoffers > div.page-content.onecolumn > section.catalog-grid > div, .ex-home > div.desktop > div {
  width: 100vw;
  padding-left: 0px;
  padding-right: 0px;
}

.ex-name-specialoffers .breadcrumb {
display: none;
margin-bottom: 0px;
}

.ex-name-specialoffers .row-breadcrumb {
margin-bottom: 0px;
}

.ex-name-specialoffers .catalog-grid {
  margin-top: 0px;
}

.ex-name-specialoffers > div.page-content.onecolumn {
    margin-bottom: 0;
    margin-top: 0;
}

#newsletters_320533 > section > div > div > div.col.col-lg-4.col-md-4.col-sm-4.col-lg-offset-1.desc-wrapper > p {
  font-size: 1.5em;
    font-weight: 700;
    padding-right: 7vw;
    line-height: 2em;
}

.lightblueback {
  background: #38B6FF;
}