.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;
    margin-bottom: 120px;
}

.cart_table {
    width: 100%;
    border-collapse: collapse;
}
.cart_table thead{
    height: 120px;
}
.cart_table tbody tr{
    height: 120px;
}

.cart_table th {
    text-align: left;
    padding: 20px;
    font-weight: 400;
    color: var(--light-black);
    border-bottom: 1px solid var(--grid-gray);
    font-size: 14px;
}

.cart_table td {
    padding: 20px;
    border-bottom: 1px solid var(--grid-gray);
    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;
}

.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: 30px 20px;
}

.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;
}

.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;
}


