/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Хлебные крошки */
.ast-header-breadcrumb {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Изменение общего контейнера сайта  */
.ast-woocommerce-container {
    position: relative;
}

.ast-primary-header-bar,
.ast-below-header-bar,
.ast-container,
.ast-container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

@media (max-width: 921px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        -webkit-column-gap: 10px !important;
           -moz-column-gap: 10px !important;
                column-gap: 10px !important;
    }
}

/* Изменение пагинации */
.woocommerce-pagination {
    text-align: center;
}

.woocommerce-pagination ul {
    white-space: normal !important;
}

/* Изменение вида категорий в сайдбаре */
.product-categories li::before {
    display: none !important;
}

.product-categories .cat-parent > a {
    font-weight: bold;
}

.wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a {
    font-weight: bold;
    font-size: 18px;
}

.wc-block-product-categories-list--has-images .wc-block-product-categories-list-item__image img {
    width: 30px !important;
    height: 30px !important;
}

.wc-block-product-categories-list-item .wc-block-product-categories-list-item {
    margin-left: 30px !important;
}

.astra-shop-filter-button {
    position: absolute !important;
    top: 0;
    right: 0;
    margin: 0 !important;
}

#cart-accessibility {
    top: 5px;
    right: 5px;
    padding: 8px;
    display: block;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 4em;
    margin-bottom: 4em;
}

@media (max-width: 921px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 1.5em;
        margin-bottom: 1.5em;
    }
}

/* LOGIN AND REGISTRATION */
#xs-social-login-container {
    padding: 0;
}

/* ACCOUNT */
.woocommerce-Address-title > h3 {
    display: inline-block;
}

.woocommerce-MyAccount-navigation {
    margin-bottom: 30px;
}

.woocommerce-table__product-name.product-name > .product-image {
    max-width: 60px;
    float: left;
    margin-right: 15px;
}

.woocommerce-button.button {
    margin: 0 5px !important;
}

.woocommerce-button.button.pay {
    display: none;
}

.woocommerce-table__line-item.order_item.in_stock {
    background-color: rgba(21, 217, 21, 0.1);
}

.woocommerce-table__line-item.order_item.out_of_stock {
    background-color: rgba(252, 67, 36, 0.1);
}

/* CART */
.ast-cart-menu-wrap {
    line-height: 1em !important;
}

/* Изменение внешнего вида товара */
.woocommerce-loop-product__title {
    white-space: nowrap;
    -o-text-overflow: ellipsis;
       text-overflow: ellipsis;
    overflow: hidden;
}


@media (max-width: 921px) {
    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid) {
        grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    }
}

@media (max-width: 544px) {
    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid) {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }
}


/* PRODUCT DATE */
.product-date {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 12px;
    color: #fff;
    z-index: 1;
}

/* PRODUCT GELLERY */
.woocommerce-product-gallery li {
    overflow: hidden;
    max-height: 100px;
}

/* PRODUCT OPTIONS */
.product-options {
    padding: 15px 0 0;
    border-top: 1px solid #eaeaea;
    margin: 15px 0;
}

.product-options__title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: bold;
}

.product-options__item {
    margin-bottom: 15px;
}

.product-options__label {
    margin-bottom: 10px;
    display: block;
}

.product-options__number {
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

.product-options__input {
    display: block;
    width: 100%;
}

.woocommerce-mini-cart-item dl {
    border: 0 !important;
    padding: 0 !important;
}

.woocommerce-mini-cart-item dd {
    margin: 0 !important;
}

/* VIEW ORDER ITEM */
.woocommerce td.product-name dl.variation {
    font-weight: normal;
}

.woocommerce td.product-name .wc-item-meta {
    margin: 0;
    overflow: hidden;
}

.view-order-total {
    background-color: #333;
    color: #fff;
}

/* WALLET */
.woo-wallet-sidebar {
    display: none;
}

.woo-wallet-content {
    width: 100% !important;
}

.woocommerce-MyAccount-navigation-link--woo-wallet a::before {
    display: none;
}

/* CHECKOUT */
.woocommerce-account-fields {
    display: none;
}

.wc_payment_method {
    margin-bottom: 5px !important;
}

.wc_payment_method > label > img {
    max-width: 30px;
    -webkit-border-radius: 4px;
            border-radius: 4px;
    border: 1px solid #eee;
    float: right;
}

@media (max-width: 921px) {
    .woocommerce-shipping-methods {
        text-align: left;
        margin: 30px 0 10px !important;
    }

    .woocommerce-shipping-destination {
        text-align: left;
    }
}

/* NOTICE */
.woocommerce-notice {
    padding: 10px 20px;
    -webkit-border-radius: 4px;
            border-radius: 4px;
    background-color: #eee;
}

.woocommerce-notice--success {
    background-color: rgba(0, 150, 0, 0.15);
    color: green;
}

.woocommerce-notice--info {
    background-color: rgba(255, 200, 0, 0.15);
    color: rgb(150, 100, 0);
}

.woocommerce-OrderUpdates.commentlist.notes {
    list-style: none;
    margin-left: 0;
}

.woocommerce-OrderUpdate.comment.note {
    padding: 10px;
    background-color: #f8f8f8;
    margin-bottom: 15px;
    -webkit-border-radius: 4px;
            border-radius: 4px;
}

.woocommerce-OrderUpdate-meta.meta {
    font-size: 12px;
}
