/*
Theme Name: AstraName
Theme URI: https://astraname.com
Author: You
Version: 1.0
*/


.woocommerce .order-again {
    display: none !important;
}

.woocommerce .woocommerce-MyAccount-navigation{
    float: left;
    width: 220px;
}

.woocommerce .woocommerce-MyAccount-content{
    float: left;
    width: calc(100% - 220px);
}

.woocommerce::after{
    content:"";
    display: table;
    clear: both;
}

.woocommerce .woocommerce-MyAccount-navigation{
    margin-right: 24px;
    box-sizing: border-box;
}

.woocommerce .woocommerce-MyAccount-content{
    width: calc(100% - 220px - 24px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .woocommerce .woocommerce-MyAccount-navigation,
    .woocommerce .woocommerce-MyAccount-content{
        float: none;
        width: 100%;
        margin-right: 0;
    }
}

/* Левая колонка навигации */
.woocommerce .woocommerce-MyAccount-navigation {
    min-width: 220px;
    flex-shrink: 0;
}

/* Убираем дефолтные списки */
.woocommerce .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Пункты меню */
.woocommerce .woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

/* Ссылки меню */
.woocommerce .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    border: 1px solid transparent;
    opacity: 0.6;
    color: #404040;
    transition: opacity 0.15s ease-out;
    position: relative;
}
.woocommerce .woocommerce-MyAccount-navigation li a:after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 14px;
    width: calc(100% - 28px);
    height: .05rem;
    background-color: transparent;
 }

.woocommerce .woocommerce-MyAccount-navigation li.is-active > a:after{
    background-color: #aaa;
}

.woocommerce .woocommerce-MyAccount-navigation li a:hover,
.woocommerce .woocommerce-MyAccount-navigation li.is-active > a{
    opacity: 1;
}

/* Правая колонка — контент аккаунта */
.woocommerce .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    border: solid 1px #eee;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.05);
    border-radius: 3px;
    padding: 20px 30px;
}

/* Заголовки внутри my-account */
.woocommerce .woocommerce-MyAccount-content h1,
.woocommerce .woocommerce-MyAccount-content h2,
.woocommerce .woocommerce-MyAccount-content h3 {
    font-family: var(--second_font);
    font-weight: 600;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 18px;
}

/* Размеры заголовков — без изменения цвета */
.woocommerce .woocommerce-MyAccount-content h1 {
    font-size: 26px;
}

.woocommerce .woocommerce-MyAccount-content h2 {
    font-size: 22px;
}

.woocommerce .woocommerce-MyAccount-content h3 {
    font-size: 18px;
}

/* Текст и абзацы */
.woocommerce .woocommerce-MyAccount-content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* Таблицы (заказы, адреса и т.п.) */
.woocommerce .woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.woocommerce .woocommerce-MyAccount-content th,
.woocommerce .woocommerce-MyAccount-content td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid currentColor;
}

.woocommerce .woocommerce-MyAccount-content th {
    font-weight: 600;
    white-space: nowrap;
}

/* Формы (изменение пароля, адресов и т.п.) */
.woocommerce .woocommerce-MyAccount-content form .form-row {
    margin: 0 0 14px;
}

.woocommerce .woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 0;
    line-height: 1.6 !important;
    font-family: var(--second_font);
    font-size: 16px;
}

/* Поля ввода */
.woocommerce .woocommerce-MyAccount-content input[type="text"],
.woocommerce .woocommerce-MyAccount-content input[type="email"],
.woocommerce .woocommerce-MyAccount-content input[type="password"],
.woocommerce .woocommerce-MyAccount-content input[type="tel"],
.woocommerce .woocommerce-MyAccount-content select,
.woocommerce .woocommerce-MyAccount-content textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid currentColor;
    font: inherit;
}

/* Кнопки */
.woocommerce .woocommerce-MyAccount-content .button,
.woocommerce .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce .woocommerce-MyAccount-content button[type="submit"] {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 9px 20px;
    font-size: 15px;
    line-height: 24px;
    -webkit-appearance: none;
    color: #404040;
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
}

/* Отступы между блоками уведомлений/ошибок */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
    margin-bottom: 16px;
}

/* Чуть компактнее мелкий текст под формами */
.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    margin-bottom: 6px;
}

.woocommerce .woocommerce-MyAccount-content .woocommerce-Address-title a {
    font-size: 13px;
}

.woocommerce-EditAccountForm fieldset{
    margin-bottom: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
    padding: 9px;
    font-size: 15px;
}
.select2-container {
    width: auto;
}
.select2-container .select2-dropdown, .select2-container .select2-selection{
    border: 1px solid #ccc;
}
.woocommerce-message {
    border-top-color: var(--second_color);
}
.wc-block-checkout__form .wc-block-components-text-input input,
#wc-block-components-totals-coupon__input-coupon{
    padding: 1.5em .5em .5em !important;
}
th, td {
    border-bottom: 0 !important;
}

/* Ячейка с продуктом: делаем 2 колонки */
.woocommerce-table__product-name.product-name {
    display: grid;
    grid-template-columns: 180px 1fr; /* 100px под превью, остальное под текст */
    grid-auto-rows: auto;
    column-gap: 16px;
    align-items: flex-start;
}

/* Блок с картинкой занимает всю левую колонку по вертикали */
.woocommerce-table__product-name .astraname-order-thumb {
    grid-column: 1;
    grid-row: 1 / span 2; /* растянуть на заголовок + список */
}

.woocommerce-table__product-name .astraname-order-thumb img {
    display: block;
    width: 180px;
    height: auto;
    border: 1px solid #ccc;
}

/* Заголовок справа, над параметрами */
.woocommerce-table__product-name .astraname-order-title {
    grid-column: 2;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 20px;
    font-family: var(--second_font);
    color: #404040;
    position: relative;
    width: fit-content;
}
.woocommerce-table__product-name .astraname-order-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0px;
    width: 80%;
    height: .1rem;
    background-color: var(--main_color);
}

.woocommerce-table__product-name .wc-item-meta {
    grid-column: 2;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image{
    display: none !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__description{
    padding-left: 0 !important;
}
.wc-block-components-order-summary .wc-block-components-product-name{
    font-size: 18px;
    font-family: var(--second_font) !important;
    position: relative;
    width: fit-content;
    padding-bottom: 5px;
    color: #404040 !important;
    font-weight: 600 !important;
}
.wc-block-components-order-summary .wc-block-components-product-name:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0px;
    width: 80%;
    height: .1rem;
    background-color: var(--main_color);
}
.wc-block-components-order-summary .wc-block-components-product-details__name{
    font-weight: 600;
}

.wc-block-components-order-summary .price.wc-block-components-product-price span{
    font-size: 18px;
    font-family: var(--second_font) !important;
    font-weight: 400 !important;
}

mark{
background-color: transparent;
color: var(--second_color);
}

.wc-block-components-button.wc-block-components-checkout-place-order-button.contained{
    font-size: 20px;
    color: #fff;
    border-radius: 5px;
    border: 0;
    padding: 17px 28px 17px 28px !important;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
    background: var(--main_color);
    min-height: auto !important;
}

.wc-block-components-checkout-return-to-cart-button{
    color: #222 !important;
    background-color: #f5f5f5;
    font-size: 20px;
    border-radius: 5px;
    border: 0;
    padding: 17px 28px 17px 28px;
    text-align: center;
    transition: all .3s;
    cursor: pointer;
}
.wc-block-components-checkout-return-to-cart-button svg{
    display: none;
}
.woocommerce table.shop_table td{
    vertical-align: top;
}

.error-404 h1{
    margin: 0 0 40px;
}
.error-404 h2 {
    text-align: center;
    color: #000;
    font-size: 16rem;
    margin: 150px 0;
}
@media (max-width: 600px){
    .error-404 h2 {
        font-size: 30vw;
    }
}


@media only screen
and (max-width : 600px) {
    .wc-block-components-button.wc-block-components-checkout-place-order-button.contained {
        width: 100% !important;
    }
    .woocommerce ul.order_details li{
        margin-bottom: 15px;
    }
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td{
        padding: 8px 6px;
    }
    .woocommerce-table__product-name.product-name{
        grid-template-columns: 60px 1fr;
        column-gap: 10px;
    }
    .woocommerce-columns.woocommerce-columns--2.addresses .woocommerce-column--billing-address{
        margin-bottom: 2em;
    }
    .woocommerce-table__product-name.product-name .wc-item-meta-label{
        float: none !important;
    }
}

/*
*:focus-visible {
outline: none !important;
box-shadow: none !important;
}
*/
