/* MasterSpec screenshot-style homepage. Scoped to .ms-home to avoid affecting other templates. */
@import url('https://fonts.googleapis.com/css2?family=Akshar:wght@400;500;600;700&display=swap');
/* Import Kantumruy Pro font */
@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:wght@600&display=swap');
.ms-home {
  width: min(1190px, calc(100% - 44px));
  margin: 0 auto;
  color: #121212;
}
.ms-home-banner{
    widows: 100%;
    
}
.ms-home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3.2/1;
  min-height: 240px;
  background: #202326;
  overflow: hidden;
}
.ms-home-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.ms-home-hero__link,
.ms-home-helper > a {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.ms-home-hero__fallback {
  height: 100%;
  color: white;
  padding: 7% 10%;
    background-image: url("https://masterspec.com.au/wp-content/uploads/2026/10/2.psd-1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ms-home-hero__fallback span {
  font-size: clamp(15px, 2vw, 27px);
  font-weight: 800;
  font-style: italic;
  display: block;
}
.ms-home-hero__fallback strong {
  color: #ffc022;
  font-size: clamp(24px, 4vw, 57px);
  line-height: 1.1;
  font-style: italic;
}
.ms-home-hero__fallback p {
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 800;
  margin: 14px 0;
}
.ms-home-section {
  padding: 30px 0 0;
}
.ms-home-category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(205px, 17.5vw));
  gap: 12px;
}
.ms-home-category {
  position: relative;
  display: block;
  overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 0;
}
.ms-home-category img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.ms-home-category:hover img {
  transform: scale(1.035);
}
.ms-home-category--power {
      background-image: url('https://masterspec.com.au/wp-content/uploads/2026/10/0.jpg');
  grid-area: 1/1/2/6;
}

.ms-home-category--hand {
  grid-area: 1/6/2/13;
    background-image: url('https://masterspec.com.au/wp-content/uploads/2026/10/MS046.jpg');
}
    
.ms-home-category--hand .ms-home-category__content strong{
    color:white!important;
}
.ms-home-category--cleaning {
  grid-area: 2/1/3/5;
  background-image: url('https://masterspec.com.au/wp-content/uploads/2026/10/MS051.png');
}
.ms-home-category--storage {
  grid-area: 2/5/3/10;
  background-image: url('https://masterspec.com.au/wp-content/uploads/2026/10/1.jpg');
    background-position: 120px 35px;
    background-size: 50%;
    background-color: #f0f0f0;
}
.ms-home-category--accessories {
  grid-area: 2/10/3/13;
  background-image: url('https://masterspec.com.au/wp-content/uploads/2026/10/未标题-1.jpg');
  background-position: 72px 84px;
    background-size: 66%;
    background-color: #f0f0f0;
}
.ms-home-image-placeholder {
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 12px;
}

.ms-home-category__content {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 8px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-shadow: 0 1px 3px #ffffffb0;
   
}
.ms-home-category__content strong {
     font-family: 'Akshar', sans-serif!important;
    font-weight: 700;
    font-size: 36px!important;
    line-height: 1.3;        /* 130% */
    letter-spacing: 0;      /* 0% */
    /* Alignment */
    text-align: center;
    vertical-align: middle;

    /* Fill */
    color: #232323;
    opacity: 1;

    /* Spacing */
    margin: 0;
}
.ms-home-category__content > span {
  color: #e6a400;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
        /* Typography */
    font-family: 'Kantumruy Pro', sans-serif;
    font-weight: 600;        /* SemiBold */
    font-size: 24px;
    line-height: 130%;       /* 31.2px */
    letter-spacing: 0;

    /* Alignment */
    text-align: center;

    /* Fill */
    color: #FFB700;
    opacity: 1;

    /* Spacing */
    margin: 0;
}

.ms-home-category--hand .ms-home-category__content,
.ms-home-category--storage .ms-home-category__content,
.ms-home-category--accessories .ms-home-category__content {
  top: 12px;
  bottom: auto;
}
.ms-home-category--hand .ms-home-category__content {
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.ms-home-heading {
  font:
    800 20px/1.3 Montserrat,
    Arial,
    sans-serif;
  text-align: center;
  margin: 0 0 22px;
}
.ms-home-heading::first-letter {
  background: #ffb900;
}
.ms-home-product-carousel {
  position: relative;
  padding: 0 20px;
  background: #eeeeee;
}
.ms-home-product-track {
  display: flex;
  gap: 21px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 20px 12px;
  scroll-behavior: smooth;
}
.ms-home-product-track::-webkit-scrollbar {
  display: none;
}
.ms-home-product-card {
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px #00000013;
  scroll-snap-align: start;
}
.ms-home-product-card__image {
  height: 200px;
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
}
.ms-home-product-card__image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.ms-home-product-card__text {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.ms-home-product-card__title {
  font-weight: 750;
  line-height: 1.35;
  font-size: 13px;
  min-height: 55px;
}
.ms-home-product-card__sku {
  color: #555;
  font-size: 11px;
}
.ms-home-product-card__text strong {
  font-size: 13px;
}
.ms-home-product-card__button {
    display: inline-flex;
    align-items: center;
    background: #ffb900;
    color: #101010;
    border: 0;
    font: 800 11px / 1.2 Montserrat, Arial, sans-serif;
    text-align: center;
    padding: 11px 21px;
    margin-top: auto;
    justify-content: center;
}
.ms-home-product-card__button:hover {
  background: #e6a400;
}
.ms-home-carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #ffb900;
  color: #111;
  font-size: 23px;
}
.ms-home-carousel-arrow--prev {
  left: 2px;
}
.ms-home-carousel-arrow--next {
  right: 2px;
}
.ms-home-helper {
  position: relative;
  max-width: 1190px;
  margin: 36px auto 0;
  min-height: 210px;
  aspect-ratio: 3.7/1;
  background: #222;
  overflow: hidden;
}
.ms-home-helper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ms-home-helper__fallback {
  height: 100%;
  background: linear-gradient(
    105deg,
    #ffb900 0%,
    #ffb900 28%,
    #202329 28%,
    #444 100%
  );
  padding: 7% 5%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ms-home-helper__fallback strong {
  font-size: clamp(19px, 3vw, 41px);
  line-height: 1.1;
}
.ms-home-helper__fallback span {
  font-weight: 700;
  font-size: 13px;
}
.ms-home-featured {
  padding-bottom: 35px;
}
.ms-home-featured-layout {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
}
.ms-home-featured-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
}
.ms-home-featured-thumb {
  background: #eeeeee;
  border: 2px solid transparent;
  min-height: 100px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  overflow: hidden;
}
.ms-home-featured-thumb.is-active {
  background: #ffb900;
  border-color: #e8a900;
}
.ms-home-featured-thumb img {
  height: 66px;
  width: 100%;
  object-fit: contain;
}
.ms-home-featured-thumb span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-home-featured-detail {
  min-width: 0;
  display: grid;
  grid-template-columns: 55% 45%;
  background: #f0f0f0;
  min-height: 410px;
  border-radius: 9px;
  overflow: hidden;
}
.ms-home-featured-main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  background: #fff;
}
.ms-home-featured-main-image img {
  max-height: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ms-home-featured-copy {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.ms-home-featured-copy h3 {
  font-size: clamp(15px, 1.35vw, 22px);
  line-height: 1.25;
  font-weight: 800;
  margin: 0;
}
.ms-home-featured-copy p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 15px;
}
.ms-home-newsletter {
  background: #ffb900;
  color: #0c0c0c;
}
.ms-home-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0;
}
.ms-home-newsletter h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}
.ms-home-newsletter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  width: min(480px, 100%);
}
.ms-home-newsletter-form input[type="email"] {
  height: 39px;
  flex: 1;
  min-width: 145px;
  background: white;
  border: 0;
  padding: 8px 13px;
  font-size: 12px;
}
.ms-home-newsletter-form button {
  height: 39px;
  padding: 0 19px;
  background: #111;
  color: #fff;
  border: 0;
  font-size: 11px;
  font-weight: 800;
}
.ms-home-newsletter-form #ms-home-newsletter-status {
  width: 100%;
  font-size: 12px;
  margin-top: 4px;
}
.ms-home-newsletter-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}
.ms-home-empty {
  padding: 24px;
  margin: 0;
  text-align: center;
}
@media (max-width: 850px) {
  .ms-home-category-grid {
    grid-template-rows: 200px 190px;
  }
  .ms-home-product-card {
    flex-basis: calc((100% - 28px) / 3);
  }
  .ms-home-featured-layout {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .ms-home-featured-detail {
    grid-template-columns: 50% 50%;
  }
  .ms-home-featured-copy {
    padding: 25px 20px;
  }
  .ms-home-featured-thumb {
    min-height: 90px;
  }
}
@media (max-width: 620px) {
  .ms-home {
    width: calc(100% - 22px);
  }
  .ms-home-hero {
    min-height: 180px;
    aspect-ratio: 2/1;
  }
  .ms-home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, 155px);
    gap: 8px;
  }
  .ms-home-category--power {
    grid-area: 1/1/2/2;
  }
  .ms-home-category--hand {
    grid-area: 1/2/2/3;
  }
  .ms-home-category--cleaning {
    grid-area: 2/1/3/2;
  }
  .ms-home-category--storage {
    grid-area: 2/2/3/3;
  }
  .ms-home-category--accessories {
    grid-area: 3/1/4/3;
  }
  .ms-home-category__content {
    left: 8px;
    bottom: 7px;
  }
  .ms-home-section {
    padding-top: 25px;
  }
  .ms-home-product-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .ms-home-product-card__image {
    height: 145px;
  }
  .ms-home-product-card__text {
    padding: 9px;
  }
  .ms-home-product-card__title {
    font-size: 11px;
    min-height: 48px;
  }
  .ms-home-product-carousel {
    padding: 0 13px;
  }
  .ms-home-product-track {
    gap: 10px;
    padding: 12px 5px;
  }
  .ms-home-carousel-arrow {
    width: 25px;
    height: 25px;
  }
  .ms-home-helper {
    min-height: 160px;
    aspect-ratio: 2.5/1;
    margin-top: 24px;
  }
  .ms-home-featured-layout {
    grid-template-columns: 1fr;
  }
  .ms-home-featured-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .ms-home-featured-thumb {
    flex: 0 0 90px;
  }
  .ms-home-featured-detail {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .ms-home-featured-main-image {
    min-height: 210px;
  }
  .ms-home-featured-main-image img {
    max-height: 210px;
  }
  .ms-home-featured-copy {
    padding: 20px;
  }
  .ms-home-newsletter__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .ms-home-newsletter h2 {
    font-size: 13px;
  }
  .ms-home-newsletter-form {
    width: 100%;
  }
}

.view-product-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    font-family: 'Kantumruy Pro', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;

    color: #FFB700;
    text-decoration: none;
}

.view-product-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #FFB700;
    border-radius: 50%;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.view-product-icon svg {
    width: 21px;
    height: 21px;
}

.view-product-link:hover {
    color: #FFB700;
}

.view-product-link:hover .view-product-icon {
    background: #FFB700;
    color: #fff;
}

/* =========================================
   STORAGE CATEGORY TEXT ALIGNMENT
========================================= */

.ms-home-category--storage .ms-home-category__content {
    position: absolute;
    top: 12px;
    bottom: auto;
    left: 12px;
    right: 12px;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px;

    z-index: 2;
}

.ms-home-category--storage .ms-home-category__content strong {
    margin: 0 !important;
    white-space: nowrap;
}

.ms-home-category--storage .ms-home-category__content > span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
}
.ms-home-banner {
    widows: 100%;
}