.main_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  gap: 40px;
}

.cart_text_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 220px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--light-black);
}

.breadcrumb a {
  color: var(--light-black);
  text-decoration: none;
}

.page_title {
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.cart_section {
  background: var(--white);
  padding: 0;
}

.cart_table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid var(--grid-gray);
}
.cart_table thead {
  height: 120px;

  border-bottom: 1px solid var(--grid-gray);
}
.cart_table tbody tr {
  height: 120px;
  border-bottom: 1px solid var(--grid-gray);
}

.cart_table th {
  text-align: left;
  padding: 20px;
  font-weight: 400;
  color: var(--light-black);
  font-size: 14px;
}

.cart_table td {
  padding: 20px;
  vertical-align: middle;
}

.cart_item_number {
  color: var(--orange-accent);
  font-weight: 600;
}

.cart_item_info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart_item_image {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #fff;
}

.cart_item_image svg {
  width: 50px;
  height: 50px;
}

.cart_item_name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
}

.cart_item_sku {
  color: var(--light-black);
  font-size: 14px;
}

.quantity_control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--grid-gray);
  width: fit-content;
}

.quantity_btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--white);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.quantity_btn:hover {
  background: var(--light-gray);
}

.quantity_value {
  width: 80px;
  text-align: center;
  font-size: 14px;
  border-left: 1px solid var(--grid-gray);
  border-right: 1px solid var(--grid-gray);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity_value:focus {
  border: 1px solid var(--orange-accent);
}

.item_price {
  font-weight: 600;
  font-size: 14px;
}

.price_on_request {
  font-weight: 700;
  text-transform: uppercase;
}

.price_per_unit {
  font-size: 12px;
  color: var(--light-black);
  margin-bottom: 4px;
}

.delete_btn {
  background: none;
  border: none;
  cursor: pointer;
  fill: #dddddd;
  padding: 5px;
}

.delete_btn:hover {
  opacity: 1;
}

.delete_btn:hover {
  fill: var(--orange-accent);
}

.cart_total_row {
  background: var(--white);
}

.cart_total_row td {
  border: none;
  padding-right: 0;
}

.total_label {
  font-weight: 700;
  font-size: 18px;
}

.total_count {
  margin-left: 10px;
  font-weight: 400;
  color: var(--light-black);
}

.total_note {
  color: var(--light-black);
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
}

.total_price {
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}

.order_section {
  background: var(--white);
  padding: 40px;
  padding-bottom: 0;
}

.cart_page .section_title {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  height: 120px;
  /*padding-top: 120px;*/
  margin-bottom: 0;
}

.cart_page .woocommerce-notices-wrapper {
  margin-bottom: 0;
}

.order_form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form_group.full_width {
  grid-column: 1 / -1;
}

.form_label {
  font-size: 14px;
  font-weight: 500;
}

.form_input {
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid var(--grid-gray);
  font-size: 14px;
  color: var(--black);
  background: transparent;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form_input:focus {
  outline: none;
  border-bottom-color: var(--orange-accent);
}

.form_input::placeholder {
  color: var(--gray);
}

.form_textarea {
  resize: none;
  min-height: 60px;
}

.checkbox_group {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 400px;
}

.custom_checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--grid-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.custom_checkbox.checked {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
}

.custom_checkbox svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
  display: none;
}

.custom_checkbox.checked svg {
  display: block;
}

.checkbox_text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}

.checkbox_text a {
  color: var(--orange-accent);
  text-decoration: none;
}

.cart_title_wrapper {
  padding: 40px;
  margin-top: 120px;
  margin-bottom: 132px;
  background-color: var(--bg-gray);
}

.empty_cart_wrapper {
  position: relative;
  display: flex;
  height: 480px;
  padding: 40px;
  background-color: var(--white);
  padding-bottom: 0;
  margin-bottom: 120px;
}

.empty_cart_item {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.empty_cart_item:nth-child(2) {
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.best_products_wrapper {
  padding-bottom: 120px;
}

.best_products_wrapper h2 {
  height: 120px;
}

.empty_cart .products_wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  grid-auto-rows: minmax(600px, 600px);
  grid-auto-flow: row;
}

.empty_cart .product_card {
  height: 600px;
}

.order_form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form_group.full_width {
  grid-column: 1 / -1;
}

.form_label {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.form_input {
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid var(--grid-gray);
  font-size: 14px;
  color: var(--black);
  background: transparent;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.form_input:focus {
  outline: none;
  border-bottom-color: var(--orange-accent);
}

.form_input::placeholder {
  color: #999;
}

.form_textarea {
  resize: none;
  min-height: 60px;
}

.amts_form_actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-left: -40px;
}

.checkbox_group {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 500px;
}

.custom_checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--grid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
  background: #fff;
}

.custom_checkbox.checked {
  background: var(--orange-accent);
  border-color: var(--orange-accent);
}

.custom_checkbox svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
  display: none;
  stroke: var(--white);
  stroke-width: 2;
}

.custom_checkbox.checked svg {
  display: block;
}

.checkbox_text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}

.checkbox_text a {
  color: var(--orange-accent);
  text-decoration: none;
}

/* Скрываем стандартные поля WooCommerce, которые мы заменили кастомными,
   но оставляем их в DOM для валидации, если нужно, или скрываем полностью */
.woocommerce-form-row {
  display: none !important;
}

.order_form_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 32px;
}

.cart-actions {
  height: 120px;
  width: 50%;
}

/* Стили для обязательной звёздочки */
.woocommerce form .form-row .required {
  display: none;
}

.order_section.container {
  margin-bottom: 120px;
}

.btn_emptycart {
  margin-left: -40px;
}

@media (max-width: 1080px) {
  .cart_table thead {
    height: 90px;
  }
  .cart_table tbody tr {
    height: 90px;
  }
  .cart-actions {
    height: 90px;
  }
  .cart_page .btn {
    height: 90px;
  }
  .cart_page .btn_cart {
    width: auto;
  }
  .cart_table tbody tr {
    width: 720px;
  }
}
.cart_table {
  width: 100%;
  table-layout: fixed; /* ключевое свойство */
}
.cart_section {
  margin-bottom: 120px;
}

/* Задаём ширину для каждого столбца */
.cart_table th:nth-child(1),
.cart_table td:nth-child(1) {
  width: 5%; /* № */
  padding-left: 10px;
}

.cart_table th:nth-child(2),
.cart_table td:nth-child(2) {
  width: 40%; /* Наименование - самый широкий */
}

.cart_table th:nth-child(3),
.cart_table td:nth-child(3) {
  width: 10%; /* Артикул */
}

.cart_table th:nth-child(4),
.cart_table td:nth-child(4) {
  width: 20%; /* Кол-во */
}

.cart_table th:nth-child(5),
.cart_table td:nth-child(5) {
  width: 15%; /* Стоимость */
}

.cart_table th:nth-child(6),
.cart_table td:nth-child(6) {
  width: 10%; /* Удалить */
}
.cart_table {
  padding-left: 10px;
}
