* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  border: none;
}

img {
  display: block;
  max-width: 100%;
}

menu:not(article menu),
ol:not(article ol),
ul:not(article ul) {
  list-style: none;
}

menu,
ol,
ul {
  padding-left: 0;
  margin: 0;
}

a {
  text-underline-position: under;
  text-decoration-thickness: 8;
}

html {
  -webkit-text-size-adjust: none; /* for iOS Safari */
  text-size-adjust: none; /* for other mobile browsers */
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:focus:not(:focus-visible) {
  outline: none;
}

label,
button,
select,
summary,
[type="radio"],
[type="submit"],
[type="checkbox"] {
  cursor: pointer;
}

input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  outline: none;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.2;
  margin: 0;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  font-weight: bold;
}

svg {
  display: block;
  height: 1em;
  stroke: currentColor;
}

/*/END OF RESET/*/

body {
  background-color: #fafafa;
}

.header {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: #65a1c4;
  background: linear-gradient(to bottom, #5aa7d5, #65a1c4);
  position: relative;
  margin-bottom: 60px;

  .logo {
    height: 130px;
    flex: 0 0 300px;
    text-align: center;
    align-items: center;

    svg {
      margin: auto;
      height: 100%;
      stroke: none;
    }
  }

  &::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    height: 30px;
    background-image: url(/img/shopwave.svg);
    background-size: 120px 30px;
    background-position: 60px 0;
  }
}

.sec {
  width: 1200px;
  max-width: 100%;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.sbox {
  border-radius: 10px;
  box-sizing: border-box;
  padding: 15px;
  box-shadow: inset 0 0 0 1px #dedede;
  background-color: #fff;
}

.sec-row {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: flex-start;
  align-items: stretch;
}

.sec-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
}

.sec-prods {
  display: flex;
  flex-direction: row;
  gap: 30px;

  > .side {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 55px;
  }
  > .main {
    flex: 1 1;
  }
}

.prod-wrap {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    left: 0;
    top: 50px;
    height: 300px;
    width: 300px;
    background-image: url(/img/leftexpand.svg);
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
  }

  &::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    right: 0;
    bottom: 50px;
    height: 300px;
    width: 300px;
    background-image: url(/img/rightexpand.svg);
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
  }
}

.prod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  column-gap: 15px;
  row-gap: 15px;

  > .prod {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #dedede;
    transition: border 0.5s ease;
    box-sizing: border-box;
    border-radius: 10px;

    > .thumb {
      width: 100%;
      background-color: #fff;
      aspect-ratio: 1;
      overflow: hidden;
      position: relative;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: scale 0.5s ease;
      }

      > .tags {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        z-index: 200;

        > .tag {
          border-radius: 5px;
          padding: 5px 10px;
          background-color: #fafafa;
          border: 1px solid #dedede;
          text-transform: uppercase;
          font-weight: bold;
          font-size: 0.85em;
          color: #565555;
          box-sizing: border-box;
        }
      }
    }

    > .data {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 15px 15px 20px;

      > .title {
        font-weight: 700;
        color: #232222;
        text-decoration: none;
        font-size: 1.1em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      > .desc {
        color: #565555;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
    }

    &:hover {
      border-color: #65a1c4;

      > .thumb img {
        scale: 1.1;
      }
    }
  }
}

.mark-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  flex-direction: row;
  overflow: visible;
  gap: 10px;

  > .mark {
    overflow: hidden;
    position: relative;
    height: 90px;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #dedede;
    transition: border 0.5s ease;

    > .data {
      display: flex;
      flex-direction: column;
      padding: 10px 10px 10px 5px;
      justify-content: center;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;

      > .title {
        color: #232222;
        font-weight: 600;
        font-size: 1em;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
      }
      > .num {
        color: 888888;
        font-size: 0.85em;
        flex: 0 0;
        margin-top: 2px;
      }
    }

    > .thumb {
      padding: 5px;
      box-sizing: border-box;
      flex: 0 0 90px;

      > img {
        height: 100%;
        width: 80px;
        object-fit: cover;
        transition: scale 0.5s ease;
        border-radius: 10px;
      }
    }

    &:hover {
      border-color: #65a1c4;

      > img {
        scale: 1.1;
      }
      &::after {
        background-position: 100%;
      }
    }
  }
}

.multi-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.1em;

  .title {
    font-size: 0.95em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #565555;
    padding: 5px 10px;
    box-sizing: border-box;
  }

  > .grp {
    display: flex;
    flex-direction: column;
    gap: 10px;

    .list {
      display: flex;
      flex-direction: column;

      > li > .list {
        padding-left: 15px;
      }

      > li {
        border-color: 1px solid transparent;
        border-radius: 5px;
        overflow: hidden;
        transition: border 0.3s ease, background-color 0.3s ease;

        &.selected > .data,
        &.selected > .data:hover,
        &.selected > .data > a {
          background-color: #5aa7d5;
          color: #fff;
        }

        > .data {
          border-radius: 5px;
          display: flex;
          flex-direction: row;
          align-items: center;
          column-gap: 5px;
          transition: background-color 0.3s ease;
          padding-right: 3px;

          a {
            text-decoration: none;
            color: #565555;
            box-sizing: border-box;
            flex: 1 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 5px 0 10px;
            height: 30px;
            display: flex;
            align-items: center;
          }

          > .num {
            background-color: #efefef;
            border-radius: 5px;
            width: 25px;
            height: 25px;
            text-align: center;
            line-height: 25px;
            font-size: 0.85em;
            font-weight: 600;
            color: #565555;
          }
          > .chv {
            background-color: #efefef;
            border-radius: 5px;
            width: 25px;
            height: 25px;
            text-align: center;
            line-height: 25px;
            font-size: 0.9em;
            font-weight: 600;
            color: #565555;
            font-size: 0.95em;
            display: flex;
            align-items: center;
            justify-content: center;
            rotate: 0deg;
            transition: color 0.3s ease, background-color 0.3s ease,
              rotate 0.3s ease;

            &:hover {
              background-color: #5aa7d5;
              color: #fafafa;
            }
          }
          > .ent {
            width: 25px;
            height: 25px;
          }

          &:hover {
            background-color: #c6dde6;
          }
        }

        > .list {
          display: none;
        }

        &:hover {
          background-color: #22222208;
          border-color: #fae0d2;
        }
        &.expanded {
          > .list {
            display: block;
          }
          > .data > .chv {
            rotate: -90deg;
          }
        }
      }
    }
  }
}

.prod-header {
  display: flex;
  margin-bottom: 15px;
  flex-direction: row;
  align-items: center;
  column-gap: 15px;
  min-height: 40px;

  > .gap {
    flex: 1 1;
  }
  > .order {
    padding: 0 15px;
    background-color: #ffffff;
    border-radius: 5px;
    border: 1px solid #dedede;
    height: 40px;
  }
}

.footer {
  color: #565555;
  padding: 15px;
  text-align: center;
  font-size: 0.9em;
}

.prodgal {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 0 0 min(400px, 40%);

  > .thumb {
    width: 100%;
    background-color: #fff;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    border: 1px solid #dedede;
    transition: border 0.3s ease;

    &:hover {
      border-color: #65a1c4;
    }

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

  > .gallery {
    position: relative;

    > .images {
      display: flex;
      flex-direction: row;
      gap: 15px;
      overflow: hidden;

      > img {
        width: 70px;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid #dedede;
        transition: border 0.3s ease;

        &.selected {
          border-color: #65a1c4;
        }

        &:hover {
          cursor: pointer;
          border-color: #65a1c4;
        }
      }
    }

    &:hover {
      > .after,
      > .before {
        opacity: 1;
        cursor: pointer;
        pointer-events: all;
      }
    }

    > .after,
    > .before {
      position: absolute;
      top: 0;
      bottom: 0;
      background-color: #22222255;
      width: 30px;
      height: 100%;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease, background-color 0.3s ease;
      color: #fafafa;

      &:hover {
        background-color: #222222aa;
      }
    }

    > .after {
      right: 0;
      border-radius: 0 10px 10px 0;
    }
    > .before {
      left: 0;
      border-radius: 10px 0 0 10px;
    }
  }
}

.proddata {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1;
  min-width: 0;

  > .title {
    font-size: 1.6em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #333333;
    padding: 15px 0 5px;
    box-sizing: border-box;
  }
  > .desc {
    font-size: 1.05em;
    text-decoration: none;
    color: #333333;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif, system-ui, -apple-system,
      BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
      "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.4;
    margin: 0 0 0 5px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: break-spaces;
  }

  > .line {
    width: 100%;
    height: 2px;
    background-color: #22222208;
    margin: 15px 0;
  }

  > .label {
    font-weight: 700;
    color: #565555;
    font-size: 0.9em;
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;

    > .icon {
      display: flex;
      flex-direction: row;
      align-items: center;
      column-gap: 5px;

      > svg {
        height: 13px;
      }
    }
  }

  > .tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    > .tag {
      font-size: 0.9em;
      font-weight: 600;
      color: #565555;
      transition: background-color 0.3s ease;

      > a {
        border: 1px solid #dedede;
        border-radius: 5px;
        padding: 5px 10px;
        text-decoration: none;
        display: block;
        color: #565555;
        transition: background-color 0.3s ease;
      }
      &:hover {
        border-radius: 5px;
        background-color: #c6dde6;
      }
    }
  }

  > .cats {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 1.15em;
    font-weight: 500;
    color: #565555;

    > .cat {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      font-size: 0.9em;
      transition: background-color 0.3s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      > a {
        text-decoration: none;
        color: #565555;

        & + a::before {
          content: "•";
          padding: 5px 5px;
          font-weight: 600;
          font-size: 0.8em;
        }
        &:hover {
          color: #5aa7d5;

          &::before {
            color: #565555;
          }
        }
      }
    }
  }
}

.proddetails {
  font-size: 1.1em;
  line-height: 1.4em;
  color: #565555;
  box-sizing: border-box;

  ul {
    padding: 0;
    margin: 0;
    list-style: disc;
    padding-left: 20px;
  }
}

.card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 800px) {
  .sec {
    margin: 30px 0;
  }
  .sec-prods {
    flex-direction: column;

    > .side {
      flex: 0 0 auto;
      width: 100%;
      padding-top: 0;
    }
  }
  .sec-row {
    flex-direction: column;
  }
}
