/*
Theme Name: Sober Child Theme
Theme URI: http://uix.store/sober/
Author: UIX Themes
Author URI: http://uix.store
Description: Sober is a fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sober
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Template: sober
*/


/* =========================================
   GENERAL
========================================= */

.comment-respond .comment-reply-title {
    text-transform: none;
}

.woocommerce div.product .star-rating {
    margin: 0;
}

.woocommerce table.shop_attributes th {
    line-height: 0.5;
    color: #646464;
}

.woocommerce table.shop_attributes td p {
    color: #000;
}


/* =========================================
   SHOP TOOLBAR / FILTERS
========================================= */

.woocommerce .shop-toolbar .products-filter li {
    margin: 4px 0;
}

.woocommerce .shop-toolbar .products-filter li a {
    padding-right: 10px;
}

@media (hover: hover) {
    .woocommerce .shop-toolbar .products-filter li:hover {
        color: #23232c;
    }
}

/* =========================================
   PRODUCT SORTING
========================================= */

.woocommerce .shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-container {
    min-width: 190px;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection--single {
    height: 42px;
    display: flex;
    align-items: center;

    padding: 0 42px 0 14px;

    background: #fff;
    border: 1px solid #d9d9de;
    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__rendered {
    padding: 0 !important;

    color: #23232c;
    font-size: 14px;
    font-weight: 500;
    line-height: 40px !important;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__arrow {
    top: 50% !important;
    right: 14px !important;

    width: 18px !important;
    height: 18px !important;

    transform: translateY(-50%);
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__arrow b {
    border-color: #23232c transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-container--focus .select2-selection--single,
.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection--single:hover {
    border-color: #23232c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}


/* Dropdown itself */
.select2-container--open .select2-dropdown {
    border: 1px solid #d9d9de;
    border-radius: 6px;
    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
}

.select2-results__option--highlighted {
    background: #23232c !important;
    color: #fff !important;
}

/* =========================================
   MARKETPLACE BUTTONS
========================================= */

.marketplace-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 465px;
}

.marketplace-button {
    flex-grow: 1;
    flex-basis: calc(50% - 5px);
    margin: 0 !important;
    text-align: center;
}

.wildberries-button {
    background-color: #8a2be2 !important;
    color: #fff !important;
}

.wildberries-button:hover {
    background-color: #7b24ca !important;
    color: #fff !important;
}

.yandex-market-button {
    background-color: #ffde00 !important;
    color: #000 !important;
}

.yandex-market-button:hover {
    background-color: #e6c900 !important;
    color: #000 !important;
}


/* =========================================
   PRODUCT PAGE LAYOUT
========================================= */

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    width: 40% !important;
    text-align: left;
}

.woocommerce div.product.layout-style-2 div.summary {
    padding-right: 40px;
    padding-left: 40px;
}

.woocommerce div.product div.images .sober-product-video {
    width: 80%;
}

.woocommerce div.product div.images img {
    width: 80%;
}

.woocommerce div.product div.images div.thumbnails .play-icon {
    left: 40%;
}


/* =========================================
   KINESCOPE VIDEO
========================================= */

.sober-product-video--kinescope .sober-product-video__wrapper {
    position: relative;
    padding-top: 177.77%;
    height: 0;
    overflow: hidden;
}

.sober-product-video--kinescope .sober-product-video__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pswp__zoom-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
}

.pswp iframe[src*="kinescope.io"] {
    height: 90vh !important;
    width: calc(90vh * 9 / 16) !important;
    max-width: 90vw !important;
}


/* =========================================
   HERO
========================================= */

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 10%;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-text p {
    color: #777;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.hero-btn:hover {
    background-color: #000;
    color: #fff;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-actions .hero-btn {
    margin: 0;
}

@media (max-width: 767px) {
    .hero-actions {
        justify-content: center;
    }
}

/* =========================================
   PROMO BANNER
========================================= */

.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 10%;
    margin: 60px 0;
    background: #fafafa;
}

.promo-image {
    flex: 0 0 400px;
}

.promo-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.promo-content {
    flex: 1;
}

.promo-content h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.promo-content p {
    color: #777;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}


/* =========================================
   CUSTOM TABS
========================================= */

.custom-tabs {
    display: flex;
}

.custom-tab {
    padding: 10px 18px;
    background: #6b6b6b;
    cursor: pointer;
    font-size: 14px;
    min-width: 150px;
}

.custom-tab.active {
    background: #23232c;
    font-weight: 600;
}

.custom-tab-content {
    display: none;
}

.custom-tab-content.active {
    display: block;
    background: #23232c;
    padding-top: 60px;
}

.ctm-wrapper {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0 20px;
}

.ctm-wrapper-chunk {
    width: 50%;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================
   PRICE OVERRIDES
========================================= */

html body.woocommerce ul.products li.product .price,
html body.woocommerce ul.products li.product .price *,
html body.woocommerce ul.products li.product .price .amount {
    font-size: 15px !important;
    line-height: 2.2 !important;
}

html body.woocommerce div.product .price,
html body.woocommerce div.product .price *,
html body.woocommerce div.product .price .amount,
html body.woocommerce div.product p.price,
html body.woocommerce div.product span.price {
    font-size: 24px !important;
    line-height: 1.2 !important;
}


/* =========================================
   MAX FLOATING BUTTON
========================================= */

.max-fixed-button {
    position: fixed;
    right: 35px;
    bottom: 60px;
    z-index: 9999;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);

    animation: max-bounce 6s ease-in-out infinite;
}

.max-fixed-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.max-fixed-button:hover {
    animation-play-state: paused;
    transform: scale(1.08);
}

@keyframes max-bounce {
    0%,
    85%,
    100% {
        transform: translateY(0);
    }

    88% {
        transform: translateY(-12px);
    }

    91% {
        transform: translateY(0);
    }

    94% {
        transform: translateY(-6px);
    }

    97% {
        transform: translateY(0);
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
    .promo-banner {
        gap: 24px;
        padding: 25px 6%;
    }

    .promo-image {
        flex: 0 0 220px;
    }

    .promo-content h2 {
        font-size: 24px;
    }

    .promo-content p {
        font-size: 15px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {
    .ctm-wrapper {
        flex-direction: column;
    }

    .ctm-wrapper-chunk {
        width: 100%;
    }

    .custom-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-tab {
        white-space: nowrap;
    }

    .woocommerce.product-style-3 .upsells-wrap,
    .woocommerce.product-style-3 .side-products {
        display: none;
    }

    #primary > div.shop-toolbar > div > div.col-sm-9.col-md-7.hidden-xs.nav-filter {
        display: block !important;
    }

    .shop-toolbar__tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 15px !important;
        scrollbar-width: none;
    }

    .shop-toolbar__tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-toolbar__tabs li a {
        cursor: pointer;
    }

    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100% !important;
        text-align: left;
    }

    .woocommerce.product-style-3 div.product div.summary {
        width: 100% !important;
        padding-left: 0;
    }

    .woocommerce div.product.layout-style-2 div.summary {
        padding-right: 0;
        padding-left: 0;
    }

    .woocommerce div.product div.images img {
        width: 100% !important;
    }

    .woocommerce div.product div.images .sober-product-video {
        width: 100% !important;
    }

    .woocommerce div.product div.images div.thumbnails .play-icon {
        left: 50%;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-btn {
        padding: 10px 24px;
    }
}

@media (max-width: 767px) {
    .topbar-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-content a {
        margin-left: 0 !important;
    }

    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 16px;
        margin: 40px 0;
    }

    .promo-image {
        flex: none;
        width: 100%;
    }

    .promo-image img {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }

    .promo-content {
        width: 100%;
    }

    .promo-content h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .promo-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .max-fixed-button {
        right: 35px;
        bottom: 35px;
        width: 54px;
        height: 54px;
    }
    .mobile-menu-inner .search-form .search-field {
    padding-left: 16px;
    padding-right: 48px;
    }
    
    .mobile-menu-inner .search-form .search-submit {
        right: 16px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}

/* =========================================
   MOBILE SORTING
========================================= */

@media (max-width: 767px) {
    .woocommerce .shop-toolbar .data.totals {
        width: 100%;
        margin-top: 12px;
    }

    .woocommerce .shop-toolbar .woocommerce-ordering {
        width: 100%;
    }

    .woocommerce .shop-toolbar .woocommerce-ordering .select2-container {
        width: 100% !important;
        min-width: 0;
    }

    .woocommerce .shop-toolbar .woocommerce-ordering .select2-selection--single {
        width: 100%;
        height: 46px;

        padding-left: 16px;
        padding-right: 46px;
    }

    .woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__rendered {
        line-height: 44px !important;
        font-size: 15px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    .max-fixed-button {
        animation: none;
    }
}

/* =========================================
   CATALOG HEADER SEARCH BUTTON
========================================= */

.page-header {
    position: relative;
}

.catalog-search-trigger {
    position: absolute;
    top: 50%;
    right: 30px;

    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 18px;

    border: 1px solid #23232c;
    border-radius: 4px;

    background: #fff;
    color: #23232c;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.catalog-search-trigger:hover {
    background: #23232c;
    color: #fff;
}

@media (max-width: 767px) {
    .page-header {
        padding-bottom: 18px;
    }

    .catalog-search-trigger {
        position: static;
        transform: none;
        margin-top: 12px;
        width: 100%;
        max-width: 220px;
    }

    .page-header .sober-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .page-header .page-title {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .page-header .catalog-search-trigger {
        position: static;
        transform: none;

        width: 100%;
        max-width: none;
        min-height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0;
        padding: 10px 16px;
    }

    .page-header .woocommerce-breadcrumb {
        width: 100%;
        margin: 0;
        text-align: left;
    }
    .page-header .woocommerce-breadcrumb {
        display: none;
    }
}

/* =========================================
   SHOP SEARCH BUTTON
========================================= */

.shop-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 18px;
    margin-right: 12px;

    border: 1px solid #23232c;
    border-radius: 6px;

    background: #fff;
    color: #23232c;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.shop-search-trigger:hover {
    background: #23232c;
    color: #fff;
}
/* =========================================
   SHOP SEARCH + SORTING ALIGNMENT
========================================= */

/* =========================================
   SHOP TOOLBAR - RIGHT CONTROLS
========================================= */

.woocommerce .shop-toolbar .controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.woocommerce .shop-toolbar .toolbar-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.woocommerce .shop-toolbar .toolbar-control .data.totals {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.woocommerce .shop-toolbar .shop-search-trigger {
    height: 42px;
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;
    margin: 0;
    margin-top:5px;

    line-height: 1;
    white-space: nowrap;
}

.woocommerce .shop-toolbar .woocommerce-ordering {
    display: flex;
    align-items: center;
    margin: 0;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-container {
    min-width: 205px;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection--single {
    height: 42px !important;
    min-height: 42px !important;

    display: flex !important;
    align-items: center !important;

    padding: 0 42px 0 14px;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__rendered {
    line-height: 1 !important;
    padding: 0 !important;
}

.woocommerce .shop-toolbar .woocommerce-ordering .select2-selection__arrow {
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%);
}

.woocommerce .shop-toolbar .product-size {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

@media (max-width: 767px) {
    .shop-search-trigger {
        width: 100%;
        min-height: 46px;

        margin: 0 0 12px;

        padding: 0 16px;
    }
}