/*
Theme Name: Restaurant @ eVias
Theme URI: https://evias.be/product/wordpress-theme-restaurant/
Description: Child theme for Wordpress for restaurants with food delivery
Author: Grégory Saive
Author URI: https://evias.be
Template: auberge
Version: 2.5.4.2
Tags: restaurant, food, delivery, interactive, order, notification, sound, alarm, ring, bell, orders, javascript
*/
/**
 * Copyright 2019 Grégory Saive (greg@evias.be - eVias Services)
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

/**
 * Contains the following overwrites:
 *
 * #1: Disable homepage news section
 * #2: List for Menu page
 * #3: List for Category page
 * #4: Fix "count items in category" <mark>
 * #5: Fix Mobile-Ready website
 * #6: Fix duplicate Ingredients list
 * #7: WooCommerce / Wordpress Restaurant v1.0.0-alpha (usability, design fixes)
 * #8: Extra and Product PPOM frontend Fix
 *
 * @author eVias Services (https://evias.be)
 **/

/* #1: Disable homepage news section */
.blog-posts.page-section {
    display: none;
}
/* End #1 */

/* #2: List for Menu page */
.woocommerce ul.products > li.product-category.product {
    width: 100%;
    margin-bottom: 0px;
}

.woocommerce ul.products > li.product-category > a img {
    width: 64px;
    height: 64px;
    display: inline;
}

.woocommerce ul.products > li.product-category > a h2 {
    display: inline;
}
/* End #2 */

/* #3: List for Category page */
.woocommerce #main article.page.entry {
    width: 60%;
    margin: 0;
    display: inline-block;
}

.woocommerce ul.products > li.product.entry {
    width: 100%;
    margin-bottom: 0px;
    position: relative;
}

.woocommerce ul.products > li.product.entry .onsale {
    top: 0px;
    left: 0px;
    width: 54px;
    opacity: 0.6;
    font-size: 0.7em;
}

.woocommerce ul.products > li.product.entry > a img {
    width: 64px;
    height: 64px;
    display: inline;
    margin: 10px;
}

.woocommerce ul.products > li.product.entry > a {
    display: inline;
}

.woocommerce ul.products > li.product.entry > a h2 {
    display: inline;
    font-size: 0.9em;
    position: absolute;
    top: 5px;
}

.woocommerce ul.products > li.product.entry > a span.price {
    position: absolute;
    left: 85px;
    top: 50px;
}

.woocommerce ul.products > li.product.entry > a span.price ins {
    box-shadow: none;
    color: #0aac8e;
}

.woocommerce ul.products > li.product.entry > a.button.ajax_add_to_cart,
.woocommerce ul.products > li.product.entry > a.button.add_to_cart_button {
    position: absolute;
    right: 10px;
    top: 10px;
}
/* End #3 */

/* #4: Fix "count items in category" <mark> */
mark.count { 
    background: transparent;
    color: #000;
    box-shadow: none;
}
/* End #4 */

/* #5: Fix Mobile-Ready website */
@media only screen and (max-width: 600px) {
    .woocommerce #main article.page.entry {
        width: 100%;
        display: block;
    }

    .woocommerce ul.products > li.product.entry > a.button.ajax_add_to_cart,
    .woocommerce ul.products > li.product.entry > a.button.add_to_cart_button {
        width: 160px;
        position: absolute;
        right: 15px;
        top: 20px;
    }

    .woocommerce ul.products > li.product.entry > a h2 {
        display: inline;
        font-size: 0.8em;
        position: absolute;
        top: 10px;
        left: 84px;
    }

    .woocommerce ul.products > li.product .onsale {
        top: 10px;
        left: 40px;
        width: 54px;
        opacity: 0.6;
        font-size: 0.7em;
    }
}
/* End #5 */

/* #6: Fix duplicate Ingredients list */
.entry-content > .entry-summary {
    display: none;
} 
/* End #6 */

/* #7 WooCommerce / Wordpress Restaurant v1.0.0-alpha (usability, design fixes) */
.woocommerce-result-count {
    visibility: hidden;
}

.highlight {
    opacity: 0.7;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #8e0000;
}

.byline.author.vcard.entry-meta-element {
    visibility: hidden;
}

.posted_in {
    visibility: hidden;
}

.woocommerce ul.products li.product .onsale {
    background-color: #8e0000;
}

.nav-search-form .form-search {
    background-color: transparent;
}

.woocommerce-store-notice, p.demo_store {
    background-color: #1a1c1e;
}

.woocommerce-store-notice, p.demo_store {
    padding: 1px 0;
}

.woocommerce-Price-amount.amount {
    color: #77a464;
}

.entry-content > .entry-summary {
    display: none;
}
/* End #7 */

/* #8: Extra and Product PPOM frontend Fix */

/* extra_zutaten_(2|3) hidden until selection */
div.ppom-field-wrapper[data-data_name="extra_zutaten_2"],
div.ppom-field-wrapper[data-data_name="extra_zutaten_3"] {
    display: none;
}

div.ppom-field-wrapper[data-data_name="extra_zutaten_2"] label,
div.ppom-field-wrapper[data-data_name="extra_zutaten_3"] label {
    display: none;
}
/* End #8 */
