.product {
  .variant-label {
    margin-bottom: 10px;
    line-height: 24px;
    font-weight: 500;
  }
}

.single-product {
  .product-top {
    display: flex;
    gap: 20px;

    .info {
      width: 50%;

      .brand {
        padding-bottom: 12px;
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
      }

      h1 {
        font-size: 20px;
        font-weight: 400;
        line-height: 1.2;
        margin-bottom: 12px;
      }

      .rating {
        font-size: 14px;

        a:hover {
          text-decoration: underline;
        }
      }

      .brand-image {
        display: flex;
        justify-content: end;
      }

      .amount {
        font-size: 20px;
        font-weight: 500;
        line-height: 24px;

        .woocommerce-Price-currencySymbol {
          text-transform: uppercase;
          font-size: 16px;
          line-height: 16px;
          font-weight: 400;
        }
      }
    }
  }

  .custom-add-to-cart {
    margin: 20px 0;
  }

  .pill-wrapper {
    display: flex;
    align-items: center;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    gap: 2px;
  }

  .qty-select {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 50px 0 0 50px;
    background: #d12248;
    color: #fff;
    appearance: none;
    cursor: pointer;
    height: 34px;
    text-align: center;
  }

  .custom-add-btn {
    font-family: Montserrat, serif;
    background: #d12248;
    color: #fff;
    padding: 8px 20px;
    border-radius: 0 50px 50px 0;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #d12248;
    font-size: 14px;
    min-width: 186px;
    height: 34px;
  }

  .custom-add-btn:hover {
    color: #fff;
    background: #333;
  }

  .variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 15px 0 40px 0;
  }

  .var-chip {
    border: 1px solid transparent;
    cursor: pointer;
    background: #fff;

    &:hover {
      border: 1px solid #000;
    }
  }

  .var-chip.is-color {
    border-radius: 999px;
    padding: 1px;

    img {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 2px solid transparent;
      display: block;
      object-fit: cover;
    }
  }

  .var-chip.active {
    border: 1px solid #000;
  }

  .info-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }

  .info-tabs .tab {
    flex: 1;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.3s;

    h4 {
      font-size: 14px;
      font-weight: 500;
      margin-top: 2px;
      margin-bottom: 5px;
    }

    p {
      font-size: 12px;
    }
  }

  .info-tabs .tab.active {
    border-color: #000;
  }

  .tab-contents .tab-content {
    display: none;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 14px;
    line-height: 18px;

    h4 {
      font-weight: 500;
    }
  }

  .tab-contents .tab-content.active {
    display: block;
  }

  #dropdowns {
    margin-top: 50px;

    :first-child {
      border-top: 1px solid #cccccc1f;
    }

    details {
      border-bottom: 1px solid #cccccc1f;
    }

    summary {
      cursor: pointer;
      list-style: none;
      padding: 23px 0;
      font-size: 20px;
      font-weight: 500;
      line-height: 18px;

      &::-webkit-details-marker {
        display: none; /* hide default triangle */
      }

      &::after {
        content: "▾";
        float: right;
        transition: transform 0.2s ease;
      }
    }

    p {
      font-size: 16px;
      line-height: 22px;
    }

    details[open] {
      padding-bottom: 23px;

      summary::after {
        transform: rotate(-180deg);
      }
    }
  }

  .custom-gallery {
    display: flex;
    gap: 15px;
    width: 50%;
  }

  .custom-gallery .thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .custom-gallery .thumbs .thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
  }

  .custom-gallery .thumbs img {
    object-fit: cover;
  }

  .custom-gallery .thumbs .thumb.active {
    border-color: #d32f4e;
  }

  .custom-gallery .main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .custom-gallery .main-image img {
    max-width: 100%;
    transition: opacity 0.3s;
  }
}

.product-card {
  --chip: 26px;

  overflow: hidden;
  display: flex;
  flex-direction: column;

  .p-media {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
  }

  .p-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
  }

  .p-media img.hover {
    opacity: 0;
  }

  .product-card:hover .p-media img.hover {
    opacity: 1;
  }

  .quicklook-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    border: none;
    background: #000;
    text-transform: uppercase;
    cursor: pointer;

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

  &:hover .quicklook-btn {
    opacity: 0.7;
    transform: translateX(-50%) translateY(-2px);
  }

  .p-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .brand {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    text-transform: uppercase;
    padding-bottom: 8px;
  }

  .title {
    font-size: 14px;
    line-height: 16.8px;
  }

  .price {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    margin: 5px 0;

    .woocommerce-Price-currencySymbol {
      font-weight: 400;
      font-size: 12px;
    }
  }

  .variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
  }

  .var-chip {
    border: 1px solid transparent;
    cursor: pointer;

    &:hover {
      border: 1px solid #000;
    }
  }

  .var-chip.is-color {
    border-radius: 999px;

    img {
      width: 22px;
      height: 22px;
      border-radius: 999px;
      display: block;
      object-fit: cover;
    }
  }

  .var-chip.active {
    border: 1px solid #000;
  }

  .var-chip[disabled] {
    opacity: 0.5;
    pointer-events: none;
  }

  .add-to-cart-section {
    align-self: center;
  }

  .add-to-cart-btn {
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    margin-top: 15px;
    padding: 10px 25px;
    overflow: hidden;
    min-width: 120px;
    max-width: 120px;
    border-radius: 30px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    cursor: pointer;

    &:hover {
      color: #fff;
      background-color: #000;
    }
  }
}
