.woocommerce-page main {
  padding: 0 40px;
}

/* =======================
   ARCHIVE PRODUCT
========================*/
body.archive-product {
  background-color: rgb(245, 245, 245);

  h1 {
    margin-top: 0;
    padding-top: 20px;
    text-align: center;
  }

  .woocommerce.columns-3 {
    margin: 0 10%;
  }

  .products {
    display: flex;
  }

  .woocommerce ul.products li.product {
    position: relative;
  }

  /* ---- Общие стили карточки ---- */
  .woocommerce-loop-product__link,
  .woocommerce-loop-product__title {
    background: white;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    text-align: center;
    margin-top: 20px;
    padding: 12px 0;
    pointer-events: auto;
  }

  .woocommerce ul.products li.product .price {
    margin: 0;
  }

  .price span {
    background: black;
    display: inherit;
    padding: 1px 0;
    border-radius: 25px 0 25px 0;
    text-align: center;
    width: 35%;

    bdi {
      font-size: 1.6rem;
      color: white;
      font-weight: 900;
    }
  }

  /* ---- Кнопки ---- */
  .woocommerce ul.products li.product .button,
  .woocommerce button.button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    min-height: 50px;
    width: 200px;
    border: none;
    background: white;
    color: black;
    border-radius: 25px;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    opacity: 0;
  }

  .woocommerce ul.products li.product .button.loading {
    display: none;
  }

  /* ---- Изображение ---- */
  .woocommerce ul.products li.product a img {
    width: auto;
    max-height: 320px;
    margin: auto;
    padding: 20px 0;
  }

  /* ---- Hover ---- */
  .woocommerce ul.products li.product:hover {
    a.woocommerce-loop-product__link {
      background: #8d8d8d;
    }
    .woocommerce-loop-product__title {
      background: black;
      color: white;
    }
    .button {
      opacity: 1;
    }
  }

  .woocommerce .woocommerce-ordering select {
    border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 2rem;
  }
}

/*======================
   SINGLE PRODUCT
========================*/
body.single-product {
  background: #111113;
  color: white;

  .site-header,
  .site-footer {
    background: #111113;
  }

  h1,
  h2 {
    text-align: center;
    padding: 20px 0 40px;
  }

  .summary {
    padding: 20px 0;
    margin-bottom: 15px;

    > *,
    .woocommerce-product-details__short-description > * {
      margin-bottom: 20px;
    }

    .price {
      margin-bottom: 25px;

      .woocommerce-Price-amount {
        background: white;
        color: black;
        padding: 10px 20px;
        border-radius: 25px;
      }
    }
  }

  #tab-description {
    margin: 20px 0;

    ul {
      padding-left: 15px;
    }

    p {
      margin-bottom: 20px;
    }
  }

  /* ---- buttons ---- */
  .woocommerce div.product form.cart .button,
  .woocommerce ul.products li.product .button {
    min-height: 50px;
    width: 200px;
    border: none;
    background: white;
    color: black;
    border-radius: 25px;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;

    &:hover {
      opacity: 0.7;
    }
  }

  .woocommerce ul.products li.product .button {
    width: auto;
    height: auto;
    display: inline-flex;
  }

  /* ---- Quantity ---- */
  .woocommerce div.product form.cart div.quantity {
    position: relative;
    display: inline-block;
    width: 130px;
    height: 48px;
    border-radius: 25px;
    border: 2px solid #fff;
    background: #fff;
    overflow: hidden;
    margin-right: 2rem;

    input.qty {
      width: 100%;
      height: 100%;
      border: none;
      text-align: center;
      background: transparent;
      padding: 0;
      appearance: textfield;
      -moz-appearance: textfield;
    }

    &::before {
      content: "−";
      position: absolute;
      left: 0;
      top: 0;
      width: 40px;
      line-height: 44px;
      text-align: center;
      cursor: pointer;
      background: #111113;
    }

    &::after {
      content: "+";
      position: absolute;
      right: 0;
      top: 0;
      width: 40px;
      line-height: 44px;
      text-align: center;
      cursor: pointer;
      background: #111113;
    }
  }

  /* ---- Related products ---- */
  .woocommerce ul.products li.product {
    width: auto;
    text-align: center;
    margin: 0;

    &:hover {
      opacity: 0.7;
      transition: 0.3s ease;
    }

    img {
      height: 200px;
      width: auto;
    }

    .price {
      margin-bottom: 1.5rem;
    }
  }

  .woocommerce .products ul {
    display: flex;
    justify-content: center;
    gap: 5rem;
  }

  ul.products li.product .price {
    color: black;
    background-color: white;
    border-radius: 25px;
    width: 35%;
    margin: auto;
  }
}

/*=======================
//  	CHECKOUT
//======================= */
body.woocommerce-checkout {
  .col-2 {
    display: none;
  }

  form.checkout {
    display: flex;
    gap: 7rem;
  }

  #customer_details {
    width: 60%;
    .col-1 {
      width: 100%;
    }
  }

  .custom-order-container {
    width: 40%;
  }

  main .entry-content {
    margin-bottom: 1.5rem;
  }

  .trp-switcher-dropdown-list {
    padding: 5px 0;
  }

  .woocommerce form .form-row .input-text,
  .select2-container .select2-selection--single .select2-selection__rendered {
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
  }
}

/*=======================
//  	ACCOUNT SETTINGS
//======================= */
body.woocommerce-account {
  .woocommerce-MyAccount-navigation-link--dashboard,
  .woocommerce-MyAccount-navigation-link--downloads,
  .woocommerce-MyAccount-navigation-link--dashboard.it-active,
  .woocommerce-MyAccount-navigation-link--downloads.is-active {
    display: none !important;
  }

  .entry-content ul li,
  .entry-content .woocommerce-Button {
    list-style: none;
    background-color: black;
    border-radius: 25px;
    margin: 1rem 0;
    width: 30%;
    padding: 5px 10px;
    text-align: center;
    &:hover {
      transition: 0.3s ease;
      background-color: rgba(0, 0, 0, 0.7);
    }
  }

  .entry-content .woocommerce-Button {
    width: auto;
    color: white;
    padding: 20px;
    font-weight: 500;
    &:hover {
      transition: 0.3s ease;
      background-color: rgba(0, 0, 0, 0.7);
      color: white;
    }
  }

  .entry-content ul li a {
    text-decoration: none;
    color: white;
  }

  li.is-active {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .woocommerce form .form-row .input-text {
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 25px;
  }
}
