.product-container {
  color: #333333;
  font-weight: 400;
  font-size: 18px;

  .container-fluid {
    width: 1400px;
    padding: 0 44px;
    margin: 0 auto;
  }

  .row {
    margin-left: -16px;
    margin-right: -16px;

    .col {
      padding-left: 16px;
      padding-right: 16px;
    }

    .left-side {
      margin-top: 97px;
      flex: 0 0 294px;

      .filter {
        font-size: 18.5px;
        margin-bottom: 45px;
      }

      .text-search {
        margin-bottom: 10px;
      }

      .form-control {
        margin-bottom: 36px;
        border-radius: 0;
        border-color: #1c1c1c;
        height: 48px;
        background: url('./assets/search3.png') no-repeat right 10px center;
      }

      .category {
        background: #f9f9f9;
        height: 41px;
        padding-left: 11px;
        display: flex;
        align-items: center;
        margin-bottom: 25px;
      }

      .check {
        display: flex;
        flex-direction: column;
        gap: 60px;
        margin-bottom: 39px;
      }

      .btn-search {
        background: #161718;
        color: #fff;
        font-size: 16px;
        font-weight: 300;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 45px;
        border-radius: 20px;
      }
    }

    .right-side {
      .col {
        margin-bottom: 18px;
      }

      .form-select {
        width: 222px;
        border: 1px solid #1c1c1c;
        border-radius: 0;
        height: 56px;
        font-size: 17.5px;
        font-weight: 400;
      }

      .product-top {
        padding-bottom: 25px;
        border-bottom: 2px solid #e3e7e7;
      }

      .product-content {
        padding-top: 47px;
        padding-bottom: 70px;

        .product-detail {
          padding-top: 18px;

          .title {
            font-size: 20px;
            font-weight: 500;
          }

          .description {
            font-size: 14px;
            font-weight: 400;
            padding-bottom: 38px;
          }
        }
      }

      .category {
        display: flex;
        flex-direction: row;
        gap: 7px;

        .category-item {
          width: 77px;
          height: 29px;
          display: flex;
          align-items: center;
          border: 1px solid #d4d4d4;
          font-size: 14px;
          font-weight: 400;
          justify-content: center;
        }
      }

      .price {
        font-size: 21px;
        font-weight: 500;

        small {
          font-size: 15px;
        }
      }

      .pagination {
        display: flex;

        ul {
          margin-left: auto;
          list-style: none;
          display: flex;
          flex-direction: row;
          gap: 5px;

          li {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            font-size: 19px;
            font-weight: 400;
            border: 1px solid #e8e8e8;
            cursor: pointer;

            &.active {
              background: #2fa41f;
              border-color: #2fa41f;
              color: #fff;
            }

            &.next {
              background: url("./assets/paging-next.png") no-repeat center center;
            }

            &.previous {
              background: url("./assets/paging-next.png") no-repeat center center;
              transform: rotate(180deg);
            }
          }
        }
      }
    }
  }

  h1 {
    font-size: 30px;
    font-weight: 500;
  }
}

.prod-detail {

  /* margin-top: 37px; */
  .container-fluid>.row {
    margin-left: -50px;
    margin-right: -50px;

    .col {
      padding-left: 50px;
      padding-right: 50px;
    }
  }

  .gallery {
    .gallery {
      max-width: 900px;
      margin: auto
    }

    .swiper-main {
      width: 100%;
      height: 592px;
      border-radius: 12px;
      overflow: hidden
    }

    .swiper-main img {
      width: 100%;
      height: 100%;
      object-fit: contain
    }

    .swiper-thumbs {
      margin-top: 12px;
      height: 100px
    }

    .swiper-thumbs .swiper-slide {
      width: 75px;
      height: 100px;
      opacity: .5;
      cursor: pointer
    }

    .swiper-thumbs .swiper-slide-thumb-active {
      opacity: 1;
      border-radius: 8px
    }

    .swiper-thumbs img {
      width: 100%;
      height: 100%;
      object-fit: cover
    }
  }

  .prod-left {
    flex: 0 0 42%;
    max-width: 42%;
    ;
  }

  .btn-return {
    width: 160px;
    height: 43px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #2fa41f;
    margin-bottom: 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    display: none;
  }

  .swiper-button-next,
  .swiper-button-prev {
    top: 270px;
    background: #565656;
    width: 53px;
    height: 53px;
    border-radius: 50%;

    img {
      width: 20px;
    }
  }

  .swiper-button-next img {
    width: 10px !important;
  }

  .swiper-button-prev img {
    width: 10px !important;
  }

  .swiper-button-prev {
    margin-left: 15px;
  }

  .swiper-button-next {
    margin-right: 15px;
  }

  .prod-left.col {
    position: relative;
  }

  .swiper-main {
    position: unset;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }

  .thumb {
    width: 100px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
  }

  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .swiper-main {
    height: 592px;
    overflow: hidden;
    border-radius: 0
  }

  .thumbs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }

  .thumb {
    width: 75px;
    height: 90px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    border: 1px solid #ddd;
  }

  .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .prod-right {
    .prod-name {
      font-size: 35px;
      font-weight: 500;
    }

    .prod-code {
      font-size: 16px;
      font-weight: 300;
      color: #808080;
      padding-bottom: 35px;
    }

    .prod-color {
      display: flex;
      align-items: center;

      .title {
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        margin-bottom: 15px;
        width: 100%;
      }

      .action {
        font-size: 11.5px;
        font-weight: 400;
        height: 20px;
        display: flex;
        align-items: center;
        margin-left: 22px;
        padding: 0 30px;
        color: #303030;
        background: #e7e7e7 url("/assets/front/images/small-arrow-right.png") no-repeat center right 11px;
        background-size: 5px;
        border-radius: 5px;
      }
    }

    .color-tag {
      display: flex;
      flex-wrap: wrap;

      /* Cho phép xuống dòng */
      /*gap: 9px;*/
      .tag {
        border-radius: 50%;
        flex: 0 0 auto;
        width: 30px;
        height: 30px;
        margin: 2px 4px;
        border: 2px solid #f5f5f5;
        position: relative;

        &.tag-2 {
          position: absolute;
          bottom: 0;
          right: 0;
          width: 100%;
          height: 100%;
          margin: 0;
          border-width: 13px;
          border-top-color: transparent !important;
          border-left-color: transparent !important;
        }
      }

      /* .tag:has(input:checked) {
        border-color: #f9f9f9;
        box-shadow: 0 0 0 2px #2fa41f;
      } */
    }

    .size-chart {
      img {
        max-width: 100%;
      }
    }
  }

  .short-line {
    background: #2fa41f;
    width: 21px;
    height: 6px;
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }

  .step {
    display: flex;
    flex-direction: column;
    gap: 170px;

    .step-item {
      &:nth-child(even) {
        background: #f9f9f9;
        padding: 137px 0 72px 0;
      }
    }

    .step-no {
      width: 54px;
      height: 54px;
      border-radius: 5px;
      background: #2fa41f;
      font-size: 11.5px;
      font-weight: 400;
      color: #fff;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;

      .number {
        font-size: 34px;
        font-weight: bold;
        line-height: 1;
      }
    }

    .step-title {
      font-size: 22.5px;
      font-weight: 500;

      .small {
        font-size: 12px;
        font-weight: 300;
      }

      margin-left: 27px;

      .note {
        height: 37px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #2fa41f;
        width: 195px;
        border-radius: 15px;
        font-size: 14px;
        color: #2fa41f;
        margin-bottom: 0;
        background-color: transparent;

        img {
          width: 20px;
          margin-right: 8px;
        }
      }
    }
  }

  .table-content {
    max-height: calc(75px * 7);
    overflow: auto;
    position: relative;
    overscroll-behavior: contain;

    &::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    &::-webkit-scrollbar-thumb {
      background: #d7d7d7;
      border-radius: 5px;
      border: 2px solid transparent;
      background-clip: content-box;
    }

    &::-webkit-scrollbar-track {
      background: #f9f9f9;
      border: 1px solid #d7d7d7;
    }

    .color-box {
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      /* background: #fff; */
      border: 1px solid #282828;
      margin-left: 10px;
      margin-right: 22px;
      position: relative;

      &.color-box-2 {
        width: 100%;
        height: 100%;
        position: absolute;
        bottom: 0;
        right: 0;
        margin: 0;
        border-width: 19px;
        border-top-color: transparent !important;
        border-left-color: transparent !important;
      }
    }

    .color-area {
      margin-right: 40px;
      flex: 0 0 64px;
    }

    .status {
      flex: 0 0 65px;
      font-size: 15px;
      font-weight: bold;
      display: flex;
      justify-content: flex-end;
      align-items: center;

      >div {
        text-align: right;

        >div {
          margin-bottom: 8px;

          &:last-child {
            margin-bottom: 0;
          }
        }
      }
    }

    .form-control {
      border-radius: 0;
      min-width: 90px;
      border: 1px solid #646464;
      height: 30px;
    }

    .width-106 {
      width: 106px;
    }

    th,
    td {
      vertical-align: middle;
    }

    th {
      border-color: transparent;
      position: sticky;
      top: 0;
      z-index: 1;

      &:nth-child(1) {
        left: 0;
        width: 288px;
        z-index: 3;

        > div {
          width: calc(288px - 1rem);
          max-width: calc(288px - 1rem);
        }
      }
    }

    .table-light {
      --bs-table-bg: #f9f9f9 !important;

      tr {
        border-color: transparent;
      }
    }

    tr {
      td {
        padding: 0;

        &:nth-child(1) {
          border-left: transparent;
          background-color: #f9f9f9;
          width: 288px;
          position: sticky;
          left: 0;
          z-index: 2;

          > div {
            width: 288px;
            max-width: 288px;
          }
        }

        .chk {
          margin-right: 0;
        }
      }
    }
  }

  .table-content th.width-106,
  .table-content td.width-106 {
    width: 110px;
  }

  .choose {
    .row {
      margin-left: -16px;
      margin-right: -16px;

      .col {
        padding-left: 16px;
        padding-right: 16px;
      }

      .choose-col {
        flex: 0 0 calc(100% / 7);
        max-width: calc(100% / 7);

        img {
          max-width: 100%;
          border-radius: 4px;
        }

        .choose-item {
          border-radius: 5px;
          position: relative;
          display: flex;
          justify-content: center;
          align-items: center;

          &:has(.custom-checkbox:checked) {
            border: 2px solid #2fa41f;

            .item-name {
              background: #2fa41f;
            }
          }

          label.position-absolute {
            position: absolute;
            left: 8px;
            top: 8px;
          }

          .item-name {
            font-size: 15px;
            font-weight: 500;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #a9a9a9;
            color: #fff;
            padding: 0 14px;
            border-radius: 5px;
            width: fit-content;
            height: 23px;
            margin: 0 auto;
            left: 0;
            right: 0;
            bottom: 8px;
          }
        }
      }
    }
  }

  .design {
    display: flex;
    flex-direction: column;
    gap: 40px;

    .row {
      margin-left: -20px;
      margin-right: -20px;

      .col {
        padding-left: 20px;
        padding-right: 20px;

        .title {
          font-size: 13px;
          font-weight: 500;
        }

        &.col-left {
          color: #313131;
          flex: 0 0 440px;
          width: 440px;
        }
      }
    }

    .files {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 12px;

      >div {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;

        .file-label {
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          display: block;
          padding: 0 20px;
        }
      }
    }

    textarea {
      height: 80px;
      resize: none;
      padding: 8px;
      border-radius: 5px;
      font-size: 11px;
      font-weight: 400;
      color: #767676;
    }

    .form-select {
      height: 29px;
      font-size: 11px;
      font-weight: 400;
      border-radius: 5px;
      border-color: #6e6e6e;
    }

    .form-control {
      height: 29px;
      font-size: 11px;
      font-weight: 400;
      border-radius: 5px;
      border-color: #6e6e6e;

      &::placeholder {
        color: #d4d4d4;
        font-size: 10px;
      }
    }

    .line-input {
      gap: 24px;
      display: flex;
      flex-direction: row;
      white-space: nowrap;
      align-items: center;

      .form-select {
        height: 29px;
        font-size: 11px;
        font-weight: 400;
        border-radius: 5px;
        border-color: #6e6e6e;
      }
    }
  }

  .choose-detail {
    padding-left: 40px;

    .choose-detail-title {
      display: flex;
      align-items: center;
      font-size: 20px;
      font-weight: bold;
      color: #2fa41f;

      img {
        width: 44px;
        margin-right: 12px;
      }
    }

    .note {
      height: 37px;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid #2fa41f;
      width: 195px;
      border-radius: 15px;
      font-size: 14px;
      color: #2fa41f;
      margin-bottom: 0;
      background-color: transparent;

      img {
        width: 20px;
        margin-right: 8px;
      }
    }
  }

  .use {
    display: flex;
    flex-direction: column;
    gap: 40px;

    .use-title {
      font-size: 17px;
      font-weight: 500;
    }

    .label-list {
      display: flex !important;
      flex-direction: row;
      gap: 17px;
      align-items: center;

      .label-detail {
        padding: 10px;
        background: #f9f9f9;
        border-radius: 5px;
        min-height: 145px;
        flex: 0 0 183px;

        /*text-align: center;*/
        .txt-title {
          font-size: 12px;
          font-weight: 300;
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          gap: 15px;
        }

        .position-absolute {
          right: 16px;
          bottom: 8px;
        }
      }

      .label-detail2 {
        &.label-detail3 {
          background: transparent;
          padding: 0;

          .info-box {
            border-radius: 5px;
            background: #f9f9f9;
            padding: 7px 10px;

            &:not(:last-child) {
              margin-bottom: 10px;
            }

            .pe-4 {
              margin-top: -10px;
            }
          }
        }

        padding: 10px;
        background: #f9f9f9;
        border-radius: 5px;
        flex: 0 0 325px;
        display: flex;
        flex-direction: column;
        justify-content: center;

        >div {
          width: 100%;
        }

        .txt-title {
          font-size: 13px;
          font-weight: 300;
        }

        .position-absolute {
          right: 0;
          bottom: 0;
        }
      }

      img {
        width: 210px;
      }
    }
  }
}

.toggle-container {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 0px 14px;
  min-width: 204px;
  background: #fff;
  height: 52px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;

  .switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
  }

  input:checked+.slider {
    background-color: #4CAF50;
  }

  input:checked+.slider:before {
    transform: translateX(16px);
  }
}

.list-check {
  display: flex;
  flex-direction: column;
  gap: 12px;

  >div {}

  .chk {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    border: 1px solid #1c1c1c;
    border-radius: 2px;
    display: inline-grid;
    place-content: center;
    background: #fff;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    vertical-align: middle;
    /* giữ thẳng hàng text */
  }

  .chk:focus {
    outline: none;
    /*box-shadow: 0 0 0 3px rgba(34,197,94,0.3);*/
  }

  .chk:checked {
    background: #2fa41f;
    border: 1px solid #9ca3af;
  }

  /* Checkmark không làm thay đổi layout */
  .chk::after {
    content: "";
    width: 6px;
    height: 10px;
    transform: rotate(45deg);
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: 2px;
  }

  .chk:checked::after {
    border-right-color: #fff;
    border-bottom-color: #fff;
  }

  label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
}

.submit-area {
  padding: 0 50px;
  height: 102px;
  background: #cdcdcddb;
  width: 100%;
  /* margin-bottom: 150px; */
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 1000;

  .summary {
    .medium-text {
      font-size: 22px;
      font-weight: 500;
    }

    .large-text {
      font-size: 30px;
      font-weight: 500;
    }

    .small-text {
      font-size: 13px;
      font-weight: 500;
    }
  }

  .dropdown {
    button {
      border: 0 !important;
      outline: 0 !important;
      background: url("/assets/front/images/arrow-down.png") no-repeat right 10px center;
      background-size: 10px;

      &:focus {
        border: 0 !important;
        outline: 0 !important;
      }

      padding-right: 24px;
    }

    .dropdown-menu {
      width: fit-content !important;
      min-width: 250px !important;
      border: 0 !important;
      outline: 0 !important;
      background: #f5f5f5;
      padding: 16px;
      border-radius: 0;
      box-shadow: none !important;
      font-size: 12px;
      font-weight: 300;
      line-height: 20px;
      max-height: 300px;
      overflow-y: auto;
      overscroll-behavior: contain;

      &::-webkit-scrollbar {
        width: 4px;
      }

      &::-webkit-scrollbar-thumb {
        background-color: #d0d0d0;
      }

      &::-webkit-scrollbar-track {
        background: transparent;
      }

      li {
        display: flex !important;
        flex-direction: row;
        gap: 16px;
      }

      span {
        &:nth-child(1) {
          flex: 0 0 auto;
          width: calc(100% - 32px - 24px - 70px);
        }

        &:nth-child(2) {
          flex: 0 0 24px;
          width: 24px;
          text-align: center;
          display: inline-flex;
          justify-content: center;
          align-items: center;
        }

        &:nth-child(3) {
          flex: 0 0 70px;
          text-align: right;
        }
      }
    }

    .dropdown-toggle::after {
      display: none;
    }
  }

  .btn-action {
    background: #2fa41f;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    width: 306px;
    border-radius: 10px;
  }
}

.use-item3 {
  .label-detail2 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.corner-bottom {
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;

  &::after {
    width: 200px;
    height: 50px;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    margin: 0 auto;
    background: #f7f7f7;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}

.corner-top {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;

  &::before {
    width: 200px;
    height: 50px;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    transform: translateY(0%);
    margin: 0 auto;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
}

#modal-print-color {
  .modal-dialog {
    max-width: 700px;
  }

  .modal-body {
    padding: 0px;
  }
}
