/*
Theme Name:  Custom Theme
Theme URI: 
Author: Socail Pie
Author URI: https://socialpie.io/
Text Domain: socail-pie-theme
Description:  Custom Theme Theme is a modernized take on an ever-popular WordPress layout â€” the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail.  Custom Theme will make your WordPress look beautiful everywhere.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
*/

:root{
    /*--font: "Open Sans", sans-serif;*/
    --font: "Work Sans", sans-serif;
    --heading-font: "Playfair Display", serif;
    --primary: #cb8161;
    --body_col: #000
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body {
  font-size: 1em;
  font-family: var(--font);
  color: var(--body_col);
  overflow-x: hidden;
}
body img {
  max-width: 100%;
  height: auto;
}
body a {
    color: var(--body_col);
    transition: color 0.4s;
}
body a:hover {
    color: var(--primary);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
}
@media (max-width: 999px) {
  body {
    font-size: 0.938em;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 0.875em;
  }
}

header#masthead {
    max-width: 1200px;
    margin: 0 auto;
}
header#masthead .site-logo {
  max-width: 162px;
}
.header_menu li.menu-item-has-children {
  position: relative;
}
.header_menu ul.sub-menu {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    list-style: none;
    width: 14em;
    left: 0;
    z-index: 999;
    box-shadow: 1px 1px 10px rgba(0,0,0,0.2);
    transform: translateX(-25%);
    background: #fff;
}
.header_menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
}
.header_menu ul.sub-menu li > a {
  padding: 0.6em 0.8em;
  display: block;
  border-bottom: 1px solid #e8e8e8;
  transition: all 0.3s;
}
.header_menu ul.sub-menu li > a:hover {
  background: var(--primary);
  color: #fff;
  
}
.header_menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}
footer.site-footer {
    background: #f6f6f6;
}
.footer_logo img {
    max-width: 160px;
    margin: 0 auto;
}
.footer-socials li a {
  display: flex;
  text-decoration: none;
  border: 1px solid #d3d3d3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  padding: 5px;
  font-size: 1.1em;
  color: var(--primary);
  transition: all 0.3s
}
.footer-socials li a:hover {
  background: var(--primary);
  color: #fff
}
.footer-contact li a {
  text-decoration: none;
  color: #000;
  transition: all 0.3s;
}
.footer-contact li a:hover {
  color: var(--primary)
}
.main-footer {
    padding: 4em 0;
}
.site-info {
    border-top: 1px solid #e0e0e0;
}
.woocommerce-message,
.woocommerce-error {
    margin: 0 3em 3em;
    outline: 0;
    display: flex;
    align-items: center;
}
.woocommerce-message:before,
.woocommerce-error:before {
    top: 1.7em;
}
body .woocommerce-error li {display: flex;justify-content: center;width: 100%;align-items: center;}
body .woocommerce-message .button,
body .woocommerce-error .button {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 0;
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    padding: 0.9em 2em;
    transition: all 0.4s;
    margin-left: auto;
}
body .woocommerce-message .button:hover {
    background: #000;
    color: #fff;
}

.woocommerce ul.products {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.woocommerce ul.products:before,
.woocommerce ul.products:after {
    display: none;
}
.woocommerce ul.products li.product {
    margin: 0;
    width: calc(33.33% - 28px) !important;
    margin-bottom: 2em;
}
ul.products li.product .product-image-wrap.has_gallery {
    position: relative;
    overflow: hidden;
}
ul.products li.product .product-image-wrap.has_gallery img {
    display: block;
    width: 100%;
    height: auto;
    backface-visibility: hidden; /* helps with flicker */
    -webkit-backface-visibility: hidden;
}
ul.products li.product .product-image-wrap.has_gallery img.second-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2;
    will-change: opacity; /* forces GPU layer */
    transform: translateZ(0); /* avoids flicker */
}
ul.products li.product .product-image-wrap.has_gallery img.first-image {
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
    will-change: opacity;
    transform: translateZ(0);
}
ul.products li.product .product-image-wrap.has_gallery:hover img.second-image {
    opacity: 1;
}
ul.products li.product .product-image-wrap.has_gallery:hover img.first-image {
    opacity: 0;
}
.woocommerce h2.woocommerce-loop-product__title {
    padding: 0 !important;
    text-align: center;
    letter-spacing: 0.6px;
    font-size: 1.2em !important;
}
.woocommerce ul.products li.product .price {
    text-align: center;
    color: var(--primary);
    font-size: 1.2em;
    margin-top: 0.7em;
}
.custom-btn {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    font-family: var(--heading-font);
    font-weight: 400;
    padding: 0.7em 2.5em;
    transition: all 0.4s
}
.custom-btn:hover {
    background-color: var(--primary);
    color: #fff
}

body header#masthead .mobile-menu .mobile-menu-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  position: absolute;
  right: 5%;
  top: 34%;
  outline: 0;
  /* bottom: 0; */
}
body header#masthead .mobile-menu .mobile-menu-toggle > div:first-child {
  margin: 0 0.5em;
}
body header#masthead .mobile-menu .mobile-menu-toggle span {
  height: 2px;
  width: 1.3em;
  background: #000;
  display: block;
  margin-bottom: 0.3em;
  margin-left: 0em;
  transform: rotate(0deg);
  transition: 0.4s;
}
body header#masthead .mobile-menu .mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}
body
  header#masthead
  .mobile-menu
  .mobile-menu-toggle.close
  span:not(.label):nth-child(1) {
  transform: rotate(45deg);
  transition: 0.4s;
  position: relative;
  top: 6px;
}
body
  header#masthead
  .mobile-menu
  .mobile-menu-toggle.close
  span:not(.label):nth-child(2) {
  display: none;
}
body
  header#masthead
  .mobile-menu
  .mobile-menu-toggle.close
  span:not(.label):nth-child(3) {
  transform: rotate(-45deg);
  transition: 0.4s;
  position: relative;
  top: -2px;
}
body header#masthead .mobile-menu .mm-panel {
  display: none;
  position: absolute;
  top: 100%;
  z-index: 99;
  background: #fff;
  box-shadow: 2px 5px 10px #b64e414d;
  width: 88%;
  margin: 0 auto;
  left: 0;
  right: 0;
}
body header#masthead .mobile-menu .mm-panel .container {
  padding: 0;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper {
  padding: 0;
  display: block;
  margin-bottom: 0;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li {
  list-style: none;
  border-bottom: 1px solid #cfcfcf;
  position: relative;
  display: block;
  margin-right: 0;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li:last-child {
  border-bottom: 0;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li a {
  text-decoration: none;
  font-size: 1.1em;
  padding: 0.9em 0.7em;
  display: block;
  line-height: 1;
  letter-spacing: 1px;
  transition: 0.3s;
  color: var(--body_col);
  text-align: left;
  text-transform: uppercase;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li a:hover {
  background: var(--primary);
  color: #fff;
  transition: 0.3s;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li a:after {
  display: none;
}
body
  header#masthead
  .mobile-menu
  .mm-panel
  ul.menu-wrapper
  li
  .sub-menu-toggle {
  display: none;
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li .chevron-child {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.9em;
  border-left: 1px solid #cfcfcf;
  font-size: 1.5em;
  background: #fff;
  transition: 0.3s;
  color: #000;
}
body
  header#masthead
  .mobile-menu
  .mm-panel
  ul.menu-wrapper
  li
  .chevron-child:hover {
  background: var(--secondary_col);
  transition: 0.3s;
  color: #000000;
}
body
  header#masthead
  .mobile-menu
  .mm-panel
  ul.menu-wrapper
  li
  .chevron-child
  i {
  transform: rotate(-90deg);
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper li > .sub-menu {
  display: none;
  padding-left: 8px;
  box-shadow: none;
  position: relative;
  padding: 0;
  padding-left: 0.7em;
}
body
  header#masthead
  .mobile-menu
  .mm-panel
  ul.menu-wrapper
  li.open-sub
  > .sub-menu {
  display: block;
}
body
  header#masthead
  .mobile-menu
  .mm-panel
  ul.menu-wrapper
  li.open-sub
  .chevron-child
  i {
  transform: rotate(-180deg);
}
body header#masthead .mobile-menu .mm-panel ul.menu-wrapper .sub-menu {
  width: 100%;
}
.header-icons {
    border-top: 1px solid #00000026;
    margin-top: 1em;
    padding-top: 0.5em;
}
.header-icons li .cart-count {
  line-height: 1;
  top: -3px;
  right: -10px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

@media(max-width: 767px) {
  .woocommerce ul.products li.product {
    width: calc(50% - 10px) !important;
    margin-bottom: 1em !important;
  }
  .main-footer {
    padding-bottom: 2em;
  }
  .woocommerce-message {
    margin: 0;
    margin-bottom: 3em;
    flex-wrap: wrap;
  }
  body .woocommerce-message .button {
    margin: 1em auto 0;
  }
}