/* Main stylesheet — scoped to .qikink-designer-root so theme header/menu/fonts are not affected */

@scope (.qikink-designer-root) {
  :scope {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: "Nunito", sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
  }

  /* Product Card Styles */
  .product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
      transform 0.2s,
      box-shadow 0.2s;
    cursor: pointer;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  .product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
  }

  .product-card-body {
    padding: 20px;
    text-align: center;
  }

  .product-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      gap: 15px;
    }

    .search-container {
      max-width: 100%;
      width: 100%;
    }

    .navigation {
      flex-direction: column;
      align-items: flex-start;
      gap: 15px;
    }

    .step-indicators {
      flex-direction: column;
      gap: 15px;
      width: 100%;
    }

    .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
    }
  }

  /* Full-Screen Centered Loader */

  /* Backdrop to disable background */
  .backdrops {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    pointer-events: all;
  }

  /* Loader */
  .processing-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 200px;
    border-radius: 10px;
  }

  .pro-loader {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #42b3f5;
    border-right: 4px solid transparent;
    animation: rotation 1s linear infinite;
  }

  .pro-loader::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-left: 4px solid #ff3d00;
    border-bottom: 4px solid transparent;
    animation: rotation 0.5s linear infinite reverse;
  }

  .pro-loader-text p {
    margin-top: 15px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
  }

  #loader-text-content {
    margin-top: 10px;
    color: white;
    font-weight: 400;
    font-size: 15px;
    text-align: center;
  }

  @media (max-width: 550px) {
    #categories_tab,
    #create_product_tab,
    #mockup_design_tab {
      display: none !important;
    }
  }

  .tooltip-inner {
    text-align: left !important;
    max-width: 250px;
  }

  .rightsidecontainer.mockup2 .center-div {
    height: 100px !important;
  }

  .small-swal-popup {
    width: 320px !important;
    padding: 30px !important;
    border-radius: 8px;
  }

  div.viewItemSelect img {
    border: none !important;
  }

  #myModal {
    overflow: hidden;
  }

  .viewItemSelect {
    padding: 10px 0 10px 0 !important;
  }

  .viewSelected img.img-responsive {
    border: 1px solid #e5743b !important;
  }

  .scFullSize .card {
    box-shadow: none;
  }

  .swiper-slide {
    max-height: 115px !important;
  }

  #width,
  #height,
  #design_angle {
    border-bottom: 1px solid #c5c9c7 !important;
    border-radius: 0px;
  }

  .popover {
    font-size: 12px !important;
    min-width: 200px !important;
    max-width: 230px !important;
  }

  #price,
  #width,
  #height,
  #dpi,
  #print_quality,
  #design_angle {
    background-color: white;
  }

  @media (min-width: 500px) and (max-width: 1200px) {
    .mockup_design_right {
      padding: 10px !important;
    }
  }

  @media (max-width: 599px) {
    #default-color-label {
      display: none !important;
    }
  }

  .fpd-panel-position {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
  }

  .align-icon,
  .fpd-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .fpd-tooltip img,
  .fpd-tooltip object {
    display: block;
  }

  .qikink-icon-color {
    color: #ff6700 !important;
    font-size: 23px;
  }

  .design-note {
    text-indent: -15px;
    margin-bottom: 8px;
    word-wrap: break-word;
  }

  .select2-container
    .select2-selection--single
    .select2-selection__rendered
    span {
    font-size: 14px;
    font-weight: 600;
    padding-top: 1px;
  }
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
