/*!
Theme Name: Zemelmania
Theme URI: http://underscores.me/
Author: Meir Sadan
Author URI: https://meirsadan.com/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
Text Domain: zman
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@font-face {
    font-family: "Bradford";
    src: url("fonts/bradford-bookitalic.woff2") format("woff2");
}

@font-face {
    font-family: "Circular";
    src: url("fonts/circular-regular.woff2") format("woff2");
}

/***
    The new CSS reset - version 1.5.1 (last updated 1.3.2022)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

/*
    Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
    - The "symbol *" part is to solve Firefox SVG sprite bug
 */
 *:where(:not(iframe, canvas, img, svg, video):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reapply the pointer cursor for anchor tags */
a, button {
    cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol, ul, menu {
    list-style: none;
}

/* For images to not be able to exceed their container */
img {
    max-width: 100%;
}

/* removes spacing between cells in tables */
table {
    border-collapse: collapse;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
    white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
    -webkit-appearance: revert;
    appearance: revert;
}

/* reset default text opacity of input placeholder */
::placeholder {
    color: unset;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
    display: none;
}

:focus-visible {
    outline: 2px solid black;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly. */
:where([contenteditable]) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
    -webkit-user-drag: element;
}

:root {
    --margin: 40px;
}

body {
    font-family: "Circular";
    font-size: 13px;
    line-height: 21px;
}

.site-header {
    margin: 24px var(--margin) 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid black;
}

.site-title {
    margin: 15px 0;
}

.menu-main-container {
    display: flex;
    gap: 1.25em;
}

.menu-main-container .wc-block-mini-cart__button {
    padding: 0;
}

.menu-main-container .wc-block-mini-cart__button svg {
    display: none;
}

.menu-main-container .wc-block-mini-cart__badge::before {
    content: "cart (";
}

.menu-main-container .wc-block-mini-cart__badge::after {
    content: ")";
}

.menu-main-container .wc-block-mini-cart__badge {
    border: none;
    font-size: 1em;
    margin: 0;
    padding: 0;
    min-width: 0;
    height: auto;
    width: auto;
    transform: none;
    font-weight: inherit;
}

.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__empty-cart-wrapper {
    text-align: center;
}

.wc-block-mini-cart__shopping-button {
    margin: 10px 0;
}

.menu {
    display: flex;
    gap: 1.25em;
}

.menu .menu-item a {
    text-transform: lowercase;
}

.menu .menu-item.current-menu-item a {
    text-decoration: underline;
}

.product-categories {
    margin: 0 var(--margin);
    padding: 20px 0 15px;
    border-bottom: 1px solid black;
}

.product-categories .menu {
    justify-content: center;
}

body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products .product {
    padding: 10px 20px;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
}

.product-info .category::after {
    content: " — ";
}

body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products .product a {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: 80%;
}

main .products .product img {
    /* width: 100%; */
    /* max-height: 300px; */
    /* height: 320px; */
    /* object-fit: scale-down; */
    width: 100%;
    height: auto;
    display: block;
    /* max-height: 200px; */
    box-shadow: 0 0 10px rgba( 0, 0, 0, 0.15 );
    filter: sepia(.1);
    margin-bottom: 1rem;
}

.widget-area {
    position: fixed;
    top: 0; bottom: 0; right: -500px;
    width: 500px;
    z-index: 100;
    background-color: white;
    transition: right 250ms;
}

body.in-cart .widget-area {
    right: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 50;
    background-color: rgba( 0, 0, 0, 0.85 );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms, visibility 250ms;
}

body.in-cart::before {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.widget-area .cart-title {
    font-size: 13px;
    line-height: 21px;
}

input[type="tel"],
input[type="email"],
input[type="text"],
textarea {
    border: 1px solid black;
    padding: 0.15em;
    min-width: 216px;
}

input[type="checkbox"],
input[type="radio"] {
    appearance: auto;
    vertical-align: text-bottom;
}

button[type="submit"] {
    border: 1px solid black;
    background-color: black;
    color: white;
    text-align: center;
    padding: 0.15em;
    min-width: 216px;
}

.wp-block-gallery figure figcaption {
    text-align: center;
    margin: 10px 0 0;
}

.wp-block-gallery figure figcaption em {
    font-family: "Bradford";
    font-size: 14.4px;
}

.works-nav {
    position: fixed;
    bottom: 25px;
    left: 50vw;
    transform: translateX(-50%);
    z-index: 100;
}

.works-nav button {
    display: inline-block;
    border: 1px solid black;
    width: 20px;
    padding: 2px;
    text-align: center;
}

article .entry-content h2 {
    font-size: 18px;
}

article .entry-content a {
    text-decoration: underline;
}

.component_option_radio_buttons_container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aria_title {
    display: none;
}

main article .entry-title {
	display: none;
}

main > .product .summary {
    display: flex;
    flex-direction: column;
}

main > .product .summary .product_title {
    order: 0;
    font-size: 18px;
    margin-bottom: 21px;
}

main > .product .summary .product_title::after {
    content: ":";
    display: block;
}

main > .product .summary .woocommerce-tabs {
    order: 10;
    margin-bottom: 21px;
}

main > .product .summary .woocommerce-tabs > .tabs {
    display: none;
}

.component_section_title {
    display: none;
}

main > .product .summary .woocommerce-tabs .wc-tab h2 {
    display: none;
}

main > .product .summary .composite_form {
    order: 20;
}

main > .product .summary .composite_form .component {
    margin-bottom: 32px;
}

main > .product .summary .composite_form .component_title {
    margin-bottom: 4px;
}

main > .product .summary .composite_form .quantity {
    display: none;
}

main > .product .product_meta {
    display: none;
}

.product-type-composite .summary > .price {
    display: none;
}

.radio_button_input > input {
    display: none;
}

.radio_button_input > label {
    display: inline-block;
    border: 1px solid black;
    padding: 5px 10px;
    cursor: pointer;
}

.radio_button_input > input:checked + label {
    background-color: black;
    color: white;
}

.radio_button_input > label::before {
    content: attr(aria-label);
}

.radio_button_description { 
    display: none;
}

.single_add_to_cart_button {
    border-radius: 16px;
}

.site-header-cart .widget_shopping_cart {
	position: absolute;
	visibility: hidden;
}

.woocommerce-cart-form,
.cart-collaterals {
    margin: 20px var(--margin);
}

.cart_totals h2 {
    display: none;
}

.cart_totals .shop_table_responsive {
    margin: 20px 0 20px auto;
}

.cart_totals .shop_table_responsive td {
    text-align: right;
    padding-inline-start: 20px;
}

.wc-proceed-to-checkout a {
    display: block;
    margin: 20px 0 20px auto;
    background: black;
    color: white;
    padding: 5px 10px;
    max-width: 180px;
    text-align: center;
    text-decoration: none !important;
}

.woocommerce-cart-form table.shop_table {
    width: 100%;
}

.woocommerce-cart-form table.shop_table td {
    vertical-align: middle;
}

.woocommerce-cart-form table.shop_table .component_table_item .product-thumbnail img {
    display: none;
}

.woocommerce-cart-form table.shop_table .component_table_item .component > *,
.woocommerce-cart-form table.shop_table .component_table_item .component > * > p {
    display: inline;
}

.woocommerce-cart-form table.shop_table .coupon {
    max-width: fit-content;
    margin-inline-start: auto;
}

.woocommerce-cart-form table.shop_table .actions > button {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-inline-start: auto;
}

.woocommerce-cart-form table.shop_table .coupon {
    margin: 20px 0 20px auto;
}

.woocommerce-cart-form table.shop_table .coupon label,
.woocommerce-cart-form table.shop_table .coupon input,
.woocommerce-cart-form table.shop_table .coupon button {
    display: inline-block;
}

.woocommerce-cart-form table.shop_table .coupon input,
.woocommerce-cart-form table.shop_table .coupon button {
    min-width: 80px;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.extendons-vs-variation-radio-btn span.extendons-vs-label-span {
    border: 1px solid black !important;
    line-height: inherit !important;
    font-size: inherit !important;
    background: white !important;
}

.extendons-vs-variation-radio-btn, 
.extendons-vs-variation-radio-btn img, 
.extendons-vs-variation-radio-btn span, 
.extendons-vs-variation-radio-btn input[type="radio"] {
    width: auto !important;
    height: auto !important;
}

.extendons-vs-image, .extendons-vs-image img, .extendons-vs-color-span, .extendons-vs-label-span {
    position: static !important;
}

.extendons-vs-square-variation-radios {
    box-shadow: none;
    border-radius: 0;
    padding: 0 5px;
}

table.variations th.label {
    display: none;
}

.extendons-vs-variation-radio-btn span.extendons-vs-selected-label-swatch {
    background: black !important;
    color: white !important;
}

body:is( .woocommerce-shop, .archive.tax-product_cat ) .variations_form {
    display: none;
}

body.single-product .product .quantity,
body.single-product .reset_variations {
    display: none !important;
}

.woocommerce-notices-wrapper {
    position: absolute;
    top: 100px; left: 40px;
    z-index: 100;
}

.woocommerce-notices-wrapper .woocommerce-message {
    background: white;
    border: 1px solid black;
    padding: 10px;
    max-width: 240px;
}

.woocommerce-notices-wrapper .woocommerce-message a {
    text-decoration: underline;
}

.woocommerce-cart-form__contents thead {
    display: none;
}

.woocommerce-cart-form__contents tbody .cart_item td {
    border-bottom: 1px solid black;
}

.woocommerce-cart-form__contents tbody .coupon > * {
    display: inline-block;
}

:where( body.woocommerce-checkout, body.woocommerce-cart ) .menu-main-container .widget {
    display: none;
}

body.woocommerce-checkout .entry-content {
    margin: 20px var(--margin) 40px;
    text-transform: lowercase;
}

body.woocommerce-checkout .entry-content :where( input, textarea ) {
    text-transform: none;
}

body.woocommerce-checkout form.checkout_coupon > * {
    margin: 10px 0;
}

body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 3fr minmax(240px, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "customer-details order-review-title"
        "customer-details order-review";
    gap: 0 20px;
}

body.woocommerce-checkout form.checkout #customer_details {
    grid-area: customer-details;
    /* display: grid; */
    /* grid-template-columns: 1fr 1fr; */
    /* gap: 0 20px; */
    max-width: 640px;
}

body.woocommerce-checkout form.checkout #order_review_heading {
    grid-area: order-review-title;
}

body.woocommerce-checkout form.checkout #order_review {
    grid-area: order-review;
}

body.woocommerce-checkout form.checkout #order_review .woocommerce-checkout-review-order-table,
body.woocommerce-checkout form.checkout #order_review .woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 16px;
}

body.woocommerce-checkout form.checkout #order_review .woocommerce-checkout-review-order-table :where(tbody, tfoot) :where( td, th ),
body.woocommerce-checkout .woocommerce-table--order-details :where(tbody, tfoot) :where( td, th ) {
    border-top: 1px solid black;
}

body.woocommerce-checkout form.checkout #order_review .woocommerce-checkout-review-order-table :where( td, th ),
body.woocommerce-checkout .woocommerce-table--order-details :where( td, th ) {
    padding: 5px 0;
}

body.woocommerce-checkout .woocommerce-table--order-details tr > :where( td, th ):last-child {
    padding-inline-start: 12px;
}

body.woocommerce-checkout form.checkout h3 {
    margin: 1em 0;
}

body.woocommerce-checkout form.checkout .form-row label {
    display: block;
}

body.woocommerce-checkout form.checkout .form-row :where( input[type="text"], input[type="email"], input[type="tel"], textarea ) {
    display: block;
    width: 100%;
    min-width: 60px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

:where( .woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper ) .form-row-wide {
    grid-column: 1 / span 2;
}

body.woocommerce-checkout form.checkout .place-order {
    margin: 20px 0;
}

.woocommerce-privacy-policy-text {
    font-size: 0.85em;
    line-height: 1.3;
    color: #888;
    float: right;
    width: 40%;
}

body.woocommerce-checkout button#place_order {
    min-width: 50%;
}

.wc-block-mini-cart__drawer {
    font-size: 13px;
}

h2.wc-block-mini-cart__title {
    font-size: 1em;
}

.wc-block-mini-cart__drawer .components-tooltip {
    min-width: 100px;
    margin-inline-end: 24px;
    text-align: center;
    background: rgba( 255, 255, 255, 0.8 );
    border: 1px solid black;
}

.wc-block-mini-cart__footer {
    margin: 12px 16px;
    padding: 12px 0;
    border-top: 1px solid black;
}

body.woocommerce-checkout .woocommerce-order-overview {
    margin-bottom: 18px;
}

body.single-product .woocommerce-variation-description {
    display: none;
}

body.single-product .single_variation_wrap .woocommerce-variation-add-to-cart {
    margin-top: 18px;
}

@media screen and (max-width: 879px) {
    body.woocommerce-checkout form.checkout #customer_details {
        display: block;
    }
}

@media screen and (max-width: 639px) {
    
    :root {
        --margin: 10px;
    }    

    .site-title img {
        height: 14px;
    }    

    .related.products,
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products {
        margin: 0 var(--margin);
    }

    .site-footer {
        display: flex;
        flex-direction: column;
        margin: 0 var(--margin);
    }

    .site-footer .menu {
        justify-content: center;
        padding: 15px 0;
        border-bottom: 1px solid black;
    }

    .site-footer .email-form-container {
        order: 1;
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        max-width: 216px;
        gap: 15px;
        margin: 0 auto;
    }

    body.page-template-about article,
    body.page-template-work article {
        margin: 20px var(--margin);
    }

    .wp-block-gallery figure {
        margin: 20px 0;
        padding: 0 0 20px;
        border-bottom: 1px solid black;
    }

    .wp-block-gallery figure img {
        width: 100%;
        height: auto;
    }

    body.single-product main > .product {
        margin: 0 var(--margin);
    }
    
    body.single-product main .woocommerce-product-gallery img {
        display: block;
        margin: 20px auto;
    }

    body.woocommerce-checkout form.checkout {
        display: block;
    }    

    body.page-template-about article .post-thumbnail img {
        height: auto;
    }
    
}

@media screen and (min-width: 640px) {
    .site-title img {
        height: 24px;
    }

    .related.products {
        grid-column: span 2;
    }
    
    .related.products ul,
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products {
        position: relative;
        margin: 0 20px;
        display: grid;
        grid-template-columns: repeat( 3, 1fr );
        grid-auto-flow: dense;
    }
    
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: 0;
        border-inline-end: 20px solid white;
    }
    
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products::after {
        content: "";
        position: absolute;
        top: 0; bottom: 0; right: 0;
        border-inline-end: 20px solid white;
    }
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products .product {
        border-inline-end: 1px solid black;
    }

    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products .product[data-span="2"] {
        grid-column-end: span 2;
    }
    
    body:is( .post-type-archive-product, .archive.tax-product_cat ) main .products .product[data-span="3"] {
        grid-column-end: span 3;
    }
    
    .site-footer {
        position: relative;
        margin: -1px var(--margin) 20px;
        padding: 24px 0;
        border-top: 1px solid black;
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    html {
        scroll-snap-type: x mandatory;
    }

    body.page-template-work .site-header {
        position: fixed;
        top: 0; left: 0; right: 0;
    }

    body.page-template-work .site-footer {
        position: fixed;
        bottom: -25px; left: 0; right: 0;
    }

    .wp-block-gallery {
        display: flex;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        padding: 0 var(--margin);
        margin-top: 100px;
        gap: 20px !important;
    }

    .wp-block-gallery > figure {
        flex-shrink: 0;
        scroll-snap-align: center;
        border-inline-end: 1px solid black;
        padding-inline-end: 20px;
    }

    .wp-block-gallery > figure:last-child {
        border-inline-end: none;
        padding-inline-end: var(--margin);
    }

    .wp-block-gallery > figure img {
        width: auto;
        height: calc( 100vh - 250px );
    }

    body.single-product main > .product {
        display: grid;
        margin: 0 var(--margin);
        grid-template-columns: 66% 33%;
        grid-template-areas: "images summary";
    }

    body.single-product main > .product > .images {
        grid-area: images;
        display: grid;
        place-content: center;
        min-height: calc( 100vh - 200px );
        /* position: sticky;
        top: 0; */
    }

    body.single-product main > .product > .summary {
        grid-area: summary;
        padding: 83px 50px;
        min-width: 400px;
        border-inline-start: 1px solid black;
    }

    body.page-template-about article {
        display: flex;
        margin: 0 var(--margin);
    }

    body.page-template-about article .post-thumbnail {
        flex-basis: 66%;
        border-inline-end: 1px solid black;
        padding: 20px 20px 20px 0;
    }

    body.page-template-about article .post-thumbnail img {
        height: calc( 100vh - 230px );
        object-fit: cover;
    }

    body.page-template-about article .entry-content {
        padding: 83px 0 20px 50px;
    }

    .email-form-container {
        display: flex;
    }

    .email-form {
        display: flex;
        align-items: center;
        gap: 16px;
        transition: opacity 250ms, visibility 250ms;
    }

    .email-form[hidden] {
        opacity: 0;
        visibility: hidden;
    }

    .email-form-toggler {
        border: 1px solid black;
        margin-inline-end: 16px;
        padding: 10px 15px;
        position: relative;
        clip-path: inset( 0 0 0 0 );
    }

    .email-form-toggler .corners::before,
    .email-form-toggler .corners::after {
        content: "";
        position: absolute;
        width: 12px; height: 12px;
        background-color: white;
        border: 1px solid black;
        border-radius: 12px;
    }

    .email-form-toggler .corners-l::before {
        top: 0; left: 0;
        transform: translate( -50%, -50% );
    }

    .email-form-toggler .corners-l::after {
        bottom: 0; left: 0;
        transform: translate( -50%, 50% );
    }

    .email-form-toggler .corners-r::before {
        top: 0; right: 0;
        transform: translate( 50%, -50% );
    }

    .email-form-toggler .corners-r::after {
        bottom: 0; right: 0;
        transform: translate( 50%, 50% );
    }

}

.woocommerce-product-gallery__image {
    padding: 20px;
    display: flex;
    align-items: center;
}

.woocommerce-product-gallery__image img {
    object-fit: contain;
    /* max-height: 100vh; */
    height: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    filter: brightness(.99) sepia(.1);
}

body.page-template-default article.page {
    margin: 24px var(--margin);
}

.related.products {
    width: 100%;
    border-top: 1px solid black;
}

.related.products h2 {
    margin: 1rem 0;
}

.related.products .product {
    padding: 1rem;
}

.related.products .product a {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.related.products .product img {
    width: auto;
    max-height: 200px;
}

.screen-reader-text, .visually-hidden {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgb(0 0 0 / 60%);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}