/* Starter Template Shortcode CSS */

@font-face {
  font-family: "PP Fragment";
  src: url("../assets/fonts/PPFragment-GlareLight.otf") format("opentype");
  font-weight: 300;
  /* Regular weight */
  font-style: normal;
}

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

.aae-starter-template-wrapper {
  margin-top: 112px;
  font-family: Figtree !important;
}

.stc-header-wrapper {
  margin: 0 50px 74px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  @media (max-width: 767px) {
    margin: 0 15px 50px;
    gap: 20px;
  }

  h1 {
    color: #202020;
    font-family: "PP Fragment" !important;
    font-size: clamp(40px, 6vw, 90px);
    font-style: normal;
    font-weight: 300;
    line-height: 1.11;

    span {
      background-color: #f6502c;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  p {
    width: 410px;
    color: #797979;
    font-family: Figtree !important;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;

    @media (max-width: 767px) {
      width: 100%;
      font-size: 16px;
    }
  }
}

/* Category Menu Styles  */

.aae-category-menu {
  --bg-white: #fff;
  --shadow-color: rgba(0, 0, 0, 0.05);
  background: var(--bg-white);
  box-shadow: 0px 0px 15px 10px var(--shadow-color);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline-end: 15px;
  padding-inline-start: 25px;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0 50px;
  position: relative;

  @media (max-width: 1700px) {
    padding: 25px;
  }

  @media (max-width: 1200px) {
    padding: 15px;
    margin: 0 15px;
  }
}

.aae-category-menu-left {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;

  @media (max-width: 1024px) {
    display: none;
  }
}

.aae-category-menu-right {
  width: 400px;

  @media (max-width: 1440px) {
    width: 250px;
  }

  @media (max-width: 1024px) {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    .aae-category-menu-search {
      width: 285px;
    }
  }

  .aae-category-menu-icon {
    width: 36px;
    height: 36px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background: #f6502c;

    @media (max-width: 1024px) {
      display: flex;
    }
  }
}

.aae-category-menu-nav {
  --nav-color: rgba(32, 32, 32, 1);
  --nav-h-color: rgba(246, 80, 44, 1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  gap: 25px;

  li {
    position: relative;

    &:hover {
      .aae-category-dropdown-wrapper {
        opacity: 1;
        visibility: visible;
        top: 100%;
      }
    }

    .aae-category-menu-nav-item {
      font-size: 16px;
      padding: 25px 0px;
      font-weight: 500;
      display: inline-block;
      color: var(--nav-color);
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;

      svg {
        transition: transform 0.3s ease, fill 0.3s ease;

        path {
          transition: fill 0.3s ease;
        }
      }

      @media (max-width: 1200px) {
        padding: 15px 0px;
      }

      &:hover {
        color: var(--nav-h-color);

        svg {
          transform: rotate(180deg);
          path {
            fill: var(--nav-h-color);
          }
        }
      }
    }
  }
}

.aae-category-seperator {
  padding: 21px 0;
  display: flex;
  align-items: center;

  @media (max-width: 1200px) {
    padding: 15px 0;
  }

  @media (max-width: 1024px) {
    display: none;
  }
}

.aae-category-dropdown-wrapper {
  position: absolute;
  width: 595px;
  z-index: 22;
  top: 110%;
  left: -25px;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-out;
}

.aae-category-dropdown-wrapper2 {
  background: var(--bg-white);
  padding-top: 10px;
  transition: 0.3s ease-out;
}

.aae-category-filter-dropdown {
  position: absolute;
  width: 480px;
  z-index: 22;
  top: 110%;
  left: 0;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 30px;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-out;
}

.aae-mb-category-filter-dropdown {
  width: 100%;
  z-index: 22;
  background: var(--bg-white);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(144px, 1fr));
  gap: 30px 10px;
}

.aae-category-dp-heading {
  font-weight: 500;
  font-size: 12px;
  line-height: 1.33;
  text-transform: uppercase;
  color: #797979;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  display: block;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.aae-category-left {
  padding-right: 20px;
  border-right: 1px solid rgba(18, 18, 18, 0.1);
}

.aae-category-right {
  padding-left: 20px;
}

.aae-category-dropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  padding-bottom: 16px;

  li {
    display: flex;
    align-items: center;

    input[type="checkbox"] {
      height: 11px;
    }

    label {
      font-weight: 500;
      font-size: 15px;
      line-height: 1;
      text-transform: capitalize;
      color: #202020;
      display: flex;
      align-items: center;
      cursor: pointer;
    }
  }
}

.aae-category-selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  li {
    padding: 5px 10px;
    background: rgba(246, 80, 44, 1);
    color: #fff;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    gap: 5px;

    &:hover {
      color: #fff;
    }

    .aae-category-close-btn {
      border: 0;
      line-height: 0;
    }
  }
}

.aae-category-unchecked {
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: #f6502c;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.aae-uncheckall-btn {
  background: none;
  border: none;
  color: #f6502c;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s ease;
}

.aae-category-filtermenu-item {
  position: relative;
  padding: 21px 0;

  &:hover {
    .aae-category-filter-dropdown {
      opacity: 1;
      visibility: visible;
      top: 100%;
    }
  }
}

.aae-category-filter-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    display: flex;
    align-items: center;
  }

  label {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-transform: capitalize;
    color: #202020;
    display: flex;
    gap: 5px;
    cursor: pointer;
  }
}

.aae-category-filter-btn {
  --btn-bg: rgba(246, 80, 44, 1);
  background-color: var(--btn-bg);
  padding: 0px 12px;
  border-radius: 75px;
  font-size: 15px;
  font-weight: 500;
  height: 26px;
  color: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.aae-category-search-wrapper {
  --search-border-bg: rgba(0, 0, 0, 0.15);
  --input-placeholder-color: rgba(121, 121, 121, 1);
  --input-text-color: rgba(32, 32, 32, 1);
  border: 1px solid var(--search-border-bg);
  border-radius: 10px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 16px;
  gap: 10px;
  position: relative;

  @media (max-width: 1024px) {
    padding: 12px;
  }

  &:has(input:focus) {
    border-color: rgba(32, 32, 32, 1);
  }

  input {
    color: var(--input-text-color);
    width: 100%;
    font-size: 15px;

    &:focus {
      ~ .aae-category-search-suggestion {
        opacity: 1;
        visibility: visible;
      }
    }

    &::placeholder {
      color: var(--input-placeholder-color);
    }
  }

  svg {
    display: none;
    cursor: pointer;
  }

  @media (max-width: 1024px) {
    svg {
      display: inline-block;
    }
  }
}

.aae-category-search-suggestion {
  position: absolute;
  width: 400px;
  z-index: 22;
  top: 110%;
  left: 0;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease-out;
  max-height: 400px;
  overflow-y: auto;

  @media (max-width: 1440px) {
    width: 250px;
  }

  /* ===== Scrollbar Style ===== */
  /* width */
  &::-webkit-scrollbar {
    width: 6px;
    /* scrollbar width */
  }

  /* Track */
  &::-webkit-scrollbar-track {
    background: rgba(246, 80, 44, 0.2);
    /* light bg for track */
    border-radius: 10px;
  }

  /* Handle (thumb) */
  &::-webkit-scrollbar-thumb {
    background: rgba(246, 80, 44, 1);
    /* main color */
    border-radius: 10px;
  }

  /* Handle on hover */
  &::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 50, 20, 1);
  }
}

.aae-category-search-suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 25px;

  li {
    .aae-css-item {
      font-weight: 500;
      font-size: 14px;
      line-height: 1;
      text-transform: capitalize;
      color: #202020;
      cursor: pointer;

      &:hover {
        color: #f6502c;
      }
    }
  }
}

.has-dropdown {
  position: relative;
}

.aae-category-demo-card-grid-area {
  background-color: rgba(249, 249, 249, 1);
  padding: 30px;
  margin: 20px;
  border-radius: 30px;
  margin-top: -40px;
  padding-top: 64px;

  @media (max-width: 767px) {
    margin: 0;
    padding: 15px;
  }
}

.aae-category-demo-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.aae-category-demo-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;

  @media (max-width: 1440px) {
    grid-template-columns: repeat(4, 1fr);
  }
  @media (max-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @media (min-width: 768px) and (max-width: 991px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

.aae-category-sec-title {
  color: rgba(32, 32, 32, 1) !important;
  font-weight: 500;
  font-size: 21px;
  padding-bottom: 20px;
  padding-left: 25px;

  @media (max-width: 767px) {
    text-align: center;
  }
}

.aae-demo-btn {
  background-color: rgba(234, 234, 255, 1);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  color: rgba(84, 83, 253, 1);
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  text-transform: capitalize;

  &.download {
    background-color: rgba(239, 251, 236, 1);
    color: rgba(52, 163, 17, 1);
  }
}

.aae-category-demo-card-thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;

  &::after {
    content: "";
    position: absolute;
    inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  &:hover {
    &::after {
      opacity: 1;
    }

    .aae-demo-preview-btn {
      opacity: 1;
    }
  }

  img {
    aspect-ratio: 1 / 1;
    width: 100%;
  }

  .aae-demo-badge {
    position: absolute;
    top: 15px;
    right: 16px;
    background-color: #f6502c;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 4;
  }
  .aae-demo-preview-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    text-transform: capitalize;
    z-index: 4;
    opacity: 0; /* hidden by default */
    transition: opacity 0.3s ease;
  }
}

.aae-category-demo-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px;

  @media (max-width: 767px) {
    padding: 15px;
  }
}

.aae-category-demo-card-content-list {
  display: flex;
  align-items: center;
  justify-content: space-between;

  @media (max-width: 767px) {
    flex-wrap: wrap;
    gap: 10px;
  }

  .aae-demo-title {
    font-weight: 500;
    font-size: 16px;
    color: #202020;

    @media (max-width: 767px) {
      font-size: 13px;
    }
  }

  .aae-demo-cat-title {
    font-size: 14px;
    font-weight: 400;
    color: #636363;

    @media (max-width: 767px) {
      font-size: 12px;
    }
  }
}

.aae-cdc-load-btn {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 10px;

  button {
    padding: 20px 40px;
    border-radius: 35px;
    background: #f6502c;
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 133.333% */
    text-transform: capitalize;
  }
}

/* checkbox style  */
.aae-category-menu *,
.aae-category-menu ::after,
.aae-category-menu ::before {
  box-sizing: border-box;
}

.aae-category-menu input[type="checkbox"] {
  margin: 0;
  width: 0;
  height: 0;
  display: inline;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.aae-category-menu input[type="checkbox"] + label:before {
  content: "";
  display: inline-block;
  vertical-align: top;
  height: 12px;
  width: 12px;
  margin-right: 0.6em;
  color: rgba(0, 0, 0, 0.275);
  border: solid 0.06em rgba(32, 32, 32, 1);
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em inset,
    0 0 0 0.07em transparent inset;
  border-radius: 0.2em;
  background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="white" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>')
      no-repeat center,
    white;
  background-size: 0;
  will-change: color, border, background, background-size, box-shadow;
  transform: translate3d(0, 0, 0);
  transition: color 0.1s, border 0.1s, background 0.15s, box-shadow 0.1s;
}

.aae-category-menu input[type="checkbox"]:enabled:active + label:before,
.aae-category-menu input[type="checkbox"]:enabled + label:active:before {
  box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset,
    0 0 0 0.07em rgba(0, 0, 0, 0.1) inset;
  background-color: #f6502c;
  border-color: #f6502c;
}

.aae-category-menu input[type="checkbox"]:checked + label:before {
  background-color: #f6502c;
  background-size: 8px;
  color: rgba(0, 0, 0, 0.075);
  border-color: #f6502c;
}

.aae-category-menu input[type="checkbox"]:checked:enabled:active + label:before,
.aae-category-menu
  input[type="checkbox"]:checked:enabled
  + label:active:before {
  background-color: #f6502c;
  color: rgba(0, 0, 0, 0.275);
  border-color: #f6502c;
}

.aae-category-menu input[type="checkbox"]:disabled + label:before {
  opacity: 0.5;
}

.aae-category-menu input[type="checkbox"].dark + label:before {
  color: rgba(255, 255, 255, 0.275);
  background-color: #222;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="rgba(34, 34, 34, 0.999)" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>');
}

.aae-category-menu input[type="checkbox"].dark:enabled:active + label:before,
.aae-category-menu input[type="checkbox"].dark:enabled + label:active:before {
  background-color: #444;
}

.aae-category-menu input[type="checkbox"].dark:checked + label:before {
  background-color: #a97035;
  color: rgba(255, 255, 255, 0.075);
}

.aae-category-menu
  input[type="checkbox"].dark:checked:enabled:active
  + label:before,
.aae-category-menu
  input[type="checkbox"].dark:checked:enabled
  + label:active:before {
  background-color: #c68035;
  color: rgba(0, 0, 0, 0.275);
}

.aae-category-menu input[type="checkbox"] + label {
  -webkit-user-select: none;
  user-select: none;
}

/* RADIO STYLING */
.aae-category-menu input[type="radio"] {
  margin: 0;
  width: 0;
  height: 0;
  display: inline;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.aae-category-menu input[type="radio"] + label:before {
  content: "";
  display: inline-block;
  vertical-align: top;
  height: 12px;
  width: 12px;
  border: solid 0.06em rgba(32, 32, 32, 1);
  border-radius: 50%;
  background: white;
  transition: background 0.15s, border 0.15s, box-shadow 0.1s;
}

/*  hover/active */
.aae-category-menu input[type="radio"]:enabled:active + label:before,
.aae-category-menu input[type="radio"]:enabled + label:active:before {
  /* background-color: #f6502c; */
  border-color: #f6502c;
}

/*checked */
.aae-category-menu input[type="radio"]:checked + label:before {
  background-color: #f6502c;
  border-color: #f6502c;
  box-shadow: inset 0 0 0 2px white;
}

/* Disabled */
.aae-category-menu input[type="radio"]:disabled + label:before {
  opacity: 0.5;
}

/* mobile nav  */

.aae-ctmd-wrapper {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: white;
  border: 1px solid rgba(18, 18, 18, 0.1);
  z-index: 999;
  display: none;
  max-height: 500px;
  overflow-y: auto;
}

.aae-mb-category-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;

  .aae-mb-category-menu-nav-item {
    font-size: 15px;
    display: inline-block;
    color: rgba(32, 32, 32, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;

    svg {
      transition: transform 0.3s ease, fill 0.3s ease;

      path {
        transition: fill 0.3s ease;
      }
    }
  }
}
