#js-product {
  max-width: 960px;
}

.hero h1 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  color: #595454;
  font-size: 36px;
  text-transform: none;
  margin-bottom: 8px;
  margin-top: 16px;
}

.grid-block {
  margin-bottom: 30px;
  clear: both;
}

.grid-block h3 {
  margin-bottom: 15px;
  text-transform: none;
}

.fp-grid,
.pc-grid,
.pc-grid4,
.brand-grid,
.fp-grid4 {
  max-width: 960px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 15px auto;
}

.fp-grid {
  margin: 15px auto 30px;
}

.shopAllLink {
  text-align: right;
  color: #1c88c7;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 16px;
  display: block;
  margin-top: -35px;
}

.fp-grid .grid-item img {
  height: 160px;
}

.fp-grid4 .grid-item {
  min-width: 160px;
  max-width: 180px;
}

.fp-grid4 .grid-item img {
  height: auto;
  max-height: 120px;
  max-width: 100%;
  width: auto;
}

.pc-grid4 .cat-title {
  text-align: center;
  /* margin-top: 8px; */
}

/* grid items */
.pc-grid .grid-item {
  min-width: 175px;
  width: calc((100% / 4) - 30px);
}

.pc-grid4 .grid-item {
  width: calc((100% / 4) - 30px);
}

.brand-grid .grid-item {
  min-width: 135px;
  width: calc((100% / 5) - 30px);
}

.grid-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  margin-bottom: 10px;
}

.grid-image a img:hover {
  opacity: 0.6;
}

.grid-image img {
  justify-content: center;
  align-items: center;
  width: auto;
  height: 160px;
}

.brand-grid .grid-item a img {
  justify-content: center;
  align-items: center;
  height: auto;
}

.shoplink {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.16);
  position: relative;
}

.fp-grid > .shoplink {
  width: calc((100% / 3) - 10px);
}

.grid-item img {
  justify-content: center;
  align-items: center;
  /*width: 100%;*/
  height: auto;
  max-height: 120px;
  padding: 0 10px;
  margin: 10px auto;
  justify-content: space-between;
}

.grid-item ul {
  list-style-type: none;
  padding-left: 0;
  text-align: left;
  margin-top: 20px;
}
.cat-links {
  padding-right: 10px;
}
.cat-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  color: #00446b;
  /* margin-bottom: 20px; */
}
.fp-title {
  padding: 10px;
}
.grid-item ul li {
  margin-bottom: 5px;
}
.promo-grid {
  margin-bottom: 30px;
  height: 180px;
}
.promo-left {
  float: left;
  width: 50%;
}

.promo-left .logo {
  width: 50%;
  margin-bottom: 40px;
}

.promo-right {
  float: right;
  width: 50%;
}

/* grid support */
/*  */
/*  */
/*  */
/*  */
/*  */
/*  */

@supports (display: grid) {
  .fp-grid4 {
    max-width: 960px;
    display: grid;
    /* grid-template-rows: 1fr; */
    /* grid-template-columns: 1fr 1fr 1fr 1fr; */
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    /* grid-auto-flow: column; */
    gap: 15px;
  }

  .fp-grid {
    max-width: 960px;
    display: grid;
    /* grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr 1fr; */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* grid-auto-flow: column; */
    gap: 15px;
  }

  .fp-title {
    color: #00446b;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold); 
  }

  .fp-grid .grid-item {
    width: auto;
    background-color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: 0.5s ease;
    transition: box-shadow 0.25s ease-out;
    backface-visibility: hidden;
  }

  .fp-grid4 .grid-item {
    width: auto;
    background-color: #fff;
    border: 1px solid #e4e3e3;
    border-radius: 3px;
    box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: 0.5s ease;
    transition: box-shadow 0.25s ease-out;
    backface-visibility: hidden;
    height: 100%;
    max-width: 100%;
  }

  .shoplink:hover {
    box-shadow: 0px 12px 20px -4px rgba(0, 0, 0, 0.1);
  }
  /*.fp-grid4 .grid-item:hover {
  
}
.fp-grid4 .grid-item img {
  width:100%;
}
.fp-grid4 .grid-item:hover img {
  opacity: 0.4;
}
.fp-grid4 .grid-item:hover .shoplink {
  opacity: 1;
}
.fp-grid4 .grid-item:hover .fp-title {
    opacity: 0.4;
}


.fp-grid .grid-item:hover {
  box-shadow: 0px 12px 20px -4px rgba(0, 0, 0, .1);
}
/*.fp-grid .grid-item img {
  width:100%;
}
.fp-grid .grid-item:hover img {
  opacity: 0.4;
}
.fp-grid .grid-item:hover .shoplink {
  opacity: 1;
}
.fp-grid .shoplink:hover .fp-title {
    opacity: 0.4;
}*/
  .grid-image {
    align-self: center;
  }

  .grid-image img {
    justify-content: center;
    align-items: center;
    width: auto;
  }

  .fp-grid .grid-item a {
    text-decoration: none;
  }

  .fp-grid .grid-item a:hover {
    color: white;
  }

  .fp-grid > .shoplink {
    width: auto;
  }

  .shoplink:after {
    align-self: center;
    background-color: #1c88c7;
    border-radius: 0.25em;
    color: #fff;
    content: 'Shop Now';
    display: none;
    margin: 0 auto;
    padding: 0.55em 1.2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
  }

  .shoplink:hover:after {
    display: block;
  }

  .pc-grid,
  .pc-grid4 {
    display: grid;
    max-width: 960px;
    /* grid-template-rows: 1fr auto;
    grid-template-columns: 1fr 1fr 1fr 1fr; */
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    grid-gap: 15px;
  }

  .pc-grid > .grid-item {
    display: grid;
    width: auto;
    grid-auto-rows: 1fr 1fr;
    grid-template-columns: 1fr;
    padding: 5px;
  }

  .pc-grid4 > .grid-item {
    display: grid;
    width: auto;
    grid-auto-rows: 1fr 0.3fr;
    grid-template-columns: 1fr;
    padding: 5px;
  }

  .pc-grid > .grid-item > .grid-image > img {
    align-self: center;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    margin-bottom: 30px;
  }

  .pc-grid4 > .grid-item > .grid-image > img {
    align-self: center;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    margin-bottom: 30px;
  }

  .grid-item > .cat-links {
    display: grid;
    grid-template-rows: 20% 2fr;
    grid-template-columns: 1fr;
  }

  .cat-links {
    text-align: left;
  }

  .cat-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    color: #00446b;
  }

  .promo-grid {
    display: grid;
    max-width: 960px;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #999;
    height: 100%;
  }

  .logo {
    width: 50%;
    margin-bottom: 20px;
  }

  .promo-left {
    padding: 15px;
    width: 100%;
  }

  .promo-left .logo {
    margin-bottom: 20px;
  }

  .pm {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .promo-right img {
    max-width: 100%;
  }

  .promo-left a {
    background-color: #1c88c7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    line-height: 1.2em;
    padding: 0.55em 0.9em 0.55em;
    text-align: center;
    text-decoration: none;
  }
  .promo-left a:hover {
    color: white;
  }

  .promo-right {
    width: 100%;
  }

  .brand-grid {
    display: grid;
    max-width: 960px;
    /* grid-template-rows: 1fr;
    grid-template-columns: auto; */
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    /* grid-auto-flow: column; */
    gap: 15px;
    align-items: center;
  }

  .brand-grid .grid-item {
    min-width: auto;
    width: auto;
  }

  .brand-grid .grid-item a img {
    width: 100%;
    height: 45px;
    object-fit: contain;
  }

  /* tablet view */
  @media (min-width: 480px) and (max-width: 1024px) {
    .fp-grid4 {
      grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }

    .fp-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .pc-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .pc-grid4 {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
  }

  @media screen and (max-width: 600px) {
    .fp-grid4 > .grid-item {
      width: auto;
      background-color: #fff;
      border: 1px solid #e4e3e3;
      border-radius: 3px;
      box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.16);
      box-sizing: border-box;
      display: grid;
      grid-template-rows: 1fr;
      grid-template-columns: 130px auto;
      padding: 15px 10px 0 0;
      text-align: center;
      position: relative;
      transition: 0.5s ease;
      transition: box-shadow 0.25s ease-out;
      backface-visibility: hidden;
      max-width: 100%;
    }

    .fp-grid > .grid-item {
      width: auto;
      background-color: #fff;
      border: 1px solid #e4e3e3;
      border-radius: 3px;
      box-shadow: 0px 4px 8px -2px rgba(0, 0, 0, 0.16);
      box-sizing: border-box;
      display: grid;
      grid-template-rows: 1fr;
      grid-template-columns: 130px auto;
      padding: 15px 10px 0 0;
      text-align: center;
      position: relative;
      transition: 0.5s ease;
      transition: box-shadow 0.25s ease-out;
      backface-visibility: hidden;
    }

    .fp-grid .grid-item img {
      height: auto;
    }

    .grid-item img {
      margin-bottom: 0;
    }

    .shoplink {
      opacity: 1;
      text-align: center;
      z-index: 100;
      /* border: 1px solid rgba(255, 255, 255, 0.1); */
      border-radius: 3px;
      color: #fff;
      font-family: var(--font-primary);
      font-weight: var(--font-weight-bold); 
      font-size: 16px;
      line-height: 1.2em;
      text-decoration: none;
    }

    .shopLink:after {
      align-self: center;
      border-radius: 0.25em;
      color: #fff;
      content: 'Shop Now';
      display: none;
      margin: 0 auto;
      padding: 0.75em 1.5em;
      position: absolute;
    }

    .pc-grid .grid-item {
      min-width: 155px;
    }

    .pc-grid4 .grid-item {
      min-width: 155px;
    }

    .promo-grid {
      display: grid;
      max-width: 600px;
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      height: auto;
    }

    .promo-right {
      width: 100%;
      order: 1;
    }

    .promo-left {
      width: 100%;
      order: 2;
    }

    .promo-left .logo {
      margin-bottom: 15px;
    }

    .fp-title {
      text-align: center;
    }
  }
}

@media screen and (max-width: 766px) {
  .shopAllLink {
    text-align: left;
    color: #1c88c7;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    display: block;
    margin-top: 0;
  }
}

@media screen and (max-width: 1023px) {
  .pm {
    font-size: 14px;
  }

  .logo {
    width: 30%;
  }
}