/*
Theme Name: Storefront Child
Theme URI: https://opencreative.com/
Description: Child theme for Storefront.
Author: Idham OC
Author URI: https://opencreative.com/
Template: storefront
Version: 1.0.0
*/

/* ==========================================
   WELLBEING 40.50 DESIGN SYSTEM
   ========================================== */

:root {
    --wb-bg: #F3EFEF;
    --wb-white: #FFFFFF;
    --wb-primary: #7391A2;
    --wb-secondary: #9FB1BC;
    --wb-text: #3A3A3A;
    --wb-border: #D8D2D2;
    --wb-shadow: rgba(115, 145, 162, 0.12);
}

/* ==========================================
   GLOBAL
   ========================================== */

body {
    background: var(--wb-bg);
    color: var(--wb-text);
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
}

a {
    color: var(--wb-primary);
}

a:hover {
    color: #5d7d8d;
}

.site-content {
    background: var(--wb-bg);
}

.site-main {
    padding-top: 10px;
    padding-bottom: 80px;
}

.storefront-breadcrumb {
    display: none;
}

.main-navigation ul.menu > li > a:hover, 
.main-navigation ul.nav-menu > li > a:active{
    background-color: var(--wb-secondary);
    color: white !important;
    font-weight: 400;
    border-radius: 3px;
}

.site-header ul.nav-menu.menu li.current-menu-item > a {
    font-weight: bold;
}

.trp-language-item {
    flex-direction: column-reverse;
}

.trp-language-switcher {
    background-color: var(--wb-primary); 
}

.trp-language-item-name {
    color: white;
}

/* ==========================================
   HEADER
   ========================================== */

.site-header,
.site-footer {
    background: var(--wb-bg);
    border: 0 !important;
}

.site-header {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 0 !important;
}

.site-branding {
    margin-bottom: 20px;
}

.site-branding img {
    max-height: 100px;
    width: auto;
}

.site-header .custom-logo-link img {
    max-height: 150px;
    max-width: 150px;
}

.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header {
    margin-bottom: 0;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
    color: var(--wb-text);
    font-weight: 400;
    font-size: 16px;
    transition: all .3s ease;
}

.main-navigation ul.menu > li > a:hover,
.main-navigation ul.nav-menu > li > a:hover,
.main-navigation .current-menu-item > a {
    color: var(--wb-primary);
}

/* ==========================================
   SEARCH
   ========================================== */

.site-search {
    margin-bottom: 0;
}

.site-search input[type="search"] {
    background: white;
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    padding: 14px 20px;
}

.site-search button {
    display: none;
}

/* ==========================================
   CART
   ========================================== */

.site-header-cart .cart-contents {
    color: var(--wb-primary);
}

.site-header-cart .cart-contents:hover {
    color: #5d7d8d;
}

/* ==========================================
   SHOP HEADER
   ========================================== */

.woocommerce-products-header {
    padding: 20px 0 30px !important;
}

.woocommerce-products-header__title.page-title {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--wb-primary);
    font-weight: 300;
    font-size: 40px;
    letter-spacing: 0.1em;
}

.woocommerce-products-header::after {
    content: "~";
    display: block;
    color: var(--wb-secondary);
    font-size: 60px;
    line-height: 1;
}

/* ==========================================
   SORTING BAR
   ========================================== */

.woocommerce-ordering select,
.orderby {
    background: white;
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--wb-text);
}

/* ==========================================
   PRODUCT GRID
   ========================================== */

ul.products {
    margin-top: 20px;
}

ul.products li.product {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 5px 25px var(--wb-shadow);
    transition: all .35s ease;
    overflow: hidden;
}

ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(115,145,162,.18);
}

ul.products li.product img {
    margin-bottom: 25px;
    transition: transform .3s ease;
}

ul.products li.product:hover img {
    transform: scale(1.03);
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
    color: var(--wb-text);
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 10px;
}

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

.price {
    color: var(--wb-primary) !important;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}

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

.button,
.add_to_cart_button,
.single_add_to_cart_button,
.checkout-button,
.wc-forward {
    background: var(--wb-primary) !important;
    border: none !important;
    border-radius: 10px !important;
    color: white !important;
    transition: all .3s ease;
}

.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
.wc-forward:hover {
    background: #5d7d8d !important;
}

/* ==========================================
   PAGINATION
   ========================================== */

.woocommerce-pagination {
    margin-top: 50px;
}

.page-numbers li .page-numbers,
.page-numbers a,
.page-numbers span {
    border-radius: 8px;
}

.page-numbers .current {
    background: var(--wb-primary) !important;
    color: white !important;
}

.page-numbers a:hover {
    background: var(--wb-secondary);
    color: white;
}

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

.single-product div.product {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 5px 30px var(--wb-shadow);
}

.single-product .price {
    font-size: 28px;
}

.single-product .product_title {
    color: var(--wb-text);
    font-weight: 300;
}

.woocommerce-result-count {
    top: 10px;
}

/* ==========================================
   FORMS
   ========================================== */

input,
textarea,
select {
    border-radius: 8px;
    border: 1px solid var(--wb-border);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--wb-primary);
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    padding-top: 60px;
    padding-bottom: 60px;
    color: #777;
    font-size: 14px;
}

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

@media (max-width: 768px) {

    .woocommerce-products-header__title.page-title {
        font-size: 42px;
    }

    ul.products li.product {
        padding: 20px;
    }

    .site-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .site-branding img {
        max-height: 70px;
    }
}
