/**
 * Theme Name:     Hiroshi Lord
 * Author:         Hiroshi Lord
 * Template:       flatsome
 * Description:    Theme Build by Hiroshi Lord
 * Version:        2025
 */

/* DEFAULT NO BORDER AND LINE-THROUGH */
.section-title-center b {
  opacity: 0;
}

.section-title-normal {
  border-bottom: none;
}

.section-title-normal span {
  border-bottom: none;
}

.text-cap {
  span {
    text-transform: capitalize;
  }
}

.border-radius {
  border-radius: 8px;
  overflow: hidden;

  img {
    border-radius: 8px;
  }
}

.sec-footer {
  .custom-menu-white .ux-menu-link__text {
    color: #ffff !important;
    text-align: left !important;
  }
}

.text-overflow {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Giới hạn tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Hiện dấu ... nếu vượt quá */
  white-space: normal;
  /* Cho phép xuống dòng */

  a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Giới hạn tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Hiện dấu ... nếu vượt quá */
    white-space: normal;
    /* Cho phép xuống dòng */
  }
}

.d-none {
  display: none !important;
}


@media (min-width: 850px) {
  header#header {
    .nav-dropdown {
      display: block;
      padding: 0;

      ul.sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        background: #fff;
        width: 250px;
        padding: 0;
        display: none !important;
        border-radius: 5px;
        box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);

        a {
          white-space: normal;
          margin: 0;
          padding: 10px 15px;
          border: 0;
          font-weight: 400;
        }
      }

      li {
        border-right: 0;
        white-space: normal;
        width: 100%;
        display: block;
        position: relative;
        padding: 10px 16px 0;

        a {
          /* padding: 15px; */
        }

        &:hover>ul.sub-menu {
          display: block !important;
          padding: 8px;

          li:hover {
            border-radius: 5px;
            background: #E0F5FF;
          }
        }

        &.menu-item-has-children>a {
          font-weight: 400;
          text-transform: none;
          color: rgba(102, 102, 102, 0.85);
          /* border-bottom: none; */
        }

        &.active>a {
          color: var(--primary-color);
        }

        .sub-menu.nav-column {
          border-radius: 5px;
          border: 1px solid var(--primary-color);
          background: #FFF;
        }
      }
    }
  }
}

.single-name-product {
  color: #FFF;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.single-product {
  table {
    border: 0.8px solid #000;
    background: #FFF;

    tr {

      th,
      td {
        border: 0.8px solid #000;
        background: #FFF;
        padding: 10px 0;
      }

      &:first-child {
        td {
          color: #0A0A0A;
          text-align: center;
          font-size: 20px;
          font-style: normal;
          font-weight: 700;
          line-height: 28px;
          /* 140% */
        }
      }

      &:nth-child(2) {
        td {
          color: #0A0A0A;
          text-align: center;
          font-size: 14px;
          font-style: normal;
          font-weight: 700;
          line-height: 24px;
          /* 171.429% */
        }
      }

      &:nth-child(n+3) {
        td {
          padding: 10px 0 10px 16.4px;
        }
      }
    }
  }


  .custom-related-products {
    margin-top: 40px;
  }

  .related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    display: block;
    width: 35%;
  }

  .related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;

    .related-item-img {
      position: relative;
      overflow: hidden;
      border-radius: 5px;
      margin-bottom: 10px;


      a.button {
        position: absolute;
        top: 45%;
        transform: translateX(30%);
        opacity: 0;
        background-color: #fff;
        color: var(--primary-color);
      }

      &:hover {

        &::before,
        &::after {
          width: 50%;
          transition: all 400ms linear;
        }

        a.button {
          opacity: 1;
          z-index: 9999;
          display: flex;
          align-items: center;
          gap: 10px;
        }
      }

      &::before {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 0%;
        background: #0093DD;
        opacity: 0.3;
        top: 0;
        left: 0;
      }

      &::after {
        content: "";
        position: absolute;
        display: block;
        height: 100%;
        width: 0%;
        background: #0093DD;
        opacity: 0.3;
        top: 0;
        right: 0;
      }
    }
  }

  .related-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    overflow: hidden;
    /* border: 1px solid #000 */
  }

  .related-item h3 {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    text-align: center;
    /* 26px */
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .related-item:hover {
    transform: translateY(-5px);
  }

  .related-button {
    text-align: center;
    margin-top: 20px;
  }

  .related-button a {
    background: #0d6efd;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
  }

}

.category {
  .post-sidebar {
    border-left: none !important;
  }
}

a.button {
  &.primary {
    padding: 6px 24px;
    border-radius: 12px;
    border: 2px solid #BAE8FF;
    box-shadow: none;
    position: relative;
    overflow: hidden;

    &:hover {
      &::after {
        -webkit-animation: shine .95s;
        animation: shine .95s;
      }
    }

    &::after {
      position: absolute;
      top: 0;
      left: -54%;
      z-index: 2;
      display: block;
      content: '';
      width: 50%;
      height: 100%;
      background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, .3)));
      background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
      background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
      -webkit-transform: skewX(-25deg);
      -ms-transform: skewX(-25deg);
      transform: skewX(-25deg);
      pointer-events: none;
    }
  }
}


@keyframes shine {
  100% {
    left: 125%;
  }
}

.yith-wcan-filters {
  .filters-container {
    border-radius: 8px;
    padding: 24px 20px;
    border: 1px solid #EBEBEB;
    background: #FFF;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);

    .filter-title {
      display: none;
    }

    ul {
      li {


        &.level-0 {
          &>label {
            .term-label {
              color: #000;
              font-size: 20px;
              font-style: normal;
              font-weight: 700;
              line-height: normal;
              letter-spacing: 1px;
            }

            input {
              display: none;
            }
          }
        }

        &.level-1 {

          display: flex;
          align-items: center;

          input {
            margin: 0;
            margin-right: 10px;
          }
        }

      }
    }
  }
}

.custom-text-moblie {

  @media screen and (max-width:768px) {
    width: 68%;
  }

}

/* END */