/*
Theme Name: Spectra One - Child
Theme URI:
Author: Pixeld
Author URI:
Description: A child theme for Spectra One
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: spectra-one
Text Domain: spectra-one-child
Tags:
*/

.header-quicklinks {
  .uagb-icon-list__source-wrap {
    position: relative;
    box-sizing: border-box;
    display: flex;
    max-height: 20px;
    svg {
      width: 25px;
    }
  }
  .wp-block-uagb-icon-list-child {
    display: flex;
  }
}
.header-search {
  input[type="search"] {
    border: none !important;
    font-size: 13px;
    outline: none;
    &::placeholder,
    &::-webkit-input-placeholder,
    &:-moz-placeholder,
    &::-moz-placeholder,
    &:-ms-input-placeholder {
      color: #000;
    }
  }
}
.woocommerce ul.products li.product .onsale {
  margin: -15px -15px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  width: 50px;
  height: 50px;
  font-weight: 400;
  background: #ff5f2f;
}

[class*="is-style-outline"]:hover a {
  background-color: #000 !important;
  color: #fff !important;
}

/* Pagination */
.wp-block-query-pagination {
  margin-top: 2.5rem;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  color: #4a4a4a;
  background-color: #f4f4f4;
  text-decoration: none;
  transition: all 0.2s ease;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wp-block-query-pagination .page-numbers.current {
  border-color: #1f1f1f;
  color: #fff;
  background-color: #1f1f1f;
  font-weight: 600;
}

.wp-block-query-pagination .page-numbers.dots {
  min-width: auto;
  border: none;
  border-radius: 0;
  color: #8a8a8a;
  background: transparent;
  padding: 0 0.3rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .page-numbers:hover {
  border-color: #8f8f8f;
  color: #111;
  background-color: #e6e6e6;
}

/* Catalog sorting select */
.wp-block-woocommerce-catalog-sorting {
  margin-bottom: 1.5rem;
}

.wp-block-woocommerce-catalog-sorting .woocommerce-ordering .orderby {
  min-width: 230px;
  height: 2.75rem;
  padding: 0 2.25rem 0 0.9rem;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  color: #404040;
  background-color: #f4f4f4;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6a6a6a 50%),
    linear-gradient(135deg, #6a6a6a 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 10px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.wp-block-woocommerce-catalog-sorting .woocommerce-ordering .orderby:hover {
  border-color: #8f8f8f;
  color: #111;
  background-color: #e9e9e9;
}

.wp-block-woocommerce-catalog-sorting .woocommerce-ordering .orderby:focus {
  outline: none;
  border-color: #1f1f1f;
  box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.15);
  background-color: #fff;
}

/* Single Product Page Adjustments */
.single_variation_wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
}
.payment-options {
  order: 2 !important;
}
.woocommerce-variation.single_variation {
  order: 1 !important;
}
.woocommerce-variation-add-to-cartvariations_button.woocommerce-variation-add-to-cart-enabled {
  width: 100% !important;
  order: 3 !important;
  display: flex !important;
  flex-direction: row !important;
}
.wp-block-woocommerce-add-to-cart-form form.cart {
  display: flex !important;
  flex-direction: column !important;
}

.wp-block-add-to-cart-form .woocommerce-Price-amount.amount bdi {
  display: none !important;
}

@media screen and (max-width: 768px) {
  #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 {
    display: flex !important;
    visibility: visible !important;
    left: 0 !important;
    width: 100% !important;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle
    + #mega-menu-max_mega_menu_1 {
    clip-path: circle(0% at calc(100% - 44px) 78px) !important;
    pointer-events: none;
    transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1) !important;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1 {
    clip-path: circle(150% at calc(100% - 44px) 78px) !important;
    pointer-events: all;
    transition: clip-path 0.72s cubic-bezier(0.76, 0, 0.24, 1) !important;
  }

  .custom-mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #ffffff3d;
  }

  .custom-mobile-menu-header img {
    filter: invert(1);
    width: 220px;
  }

  .custom-mobile-menu-header button.mega-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    width: 40px !important;
    box-sizing: border-box !important;
    z-index: 99999999999;
    cursor: pointer;
  }

  .mega-menu-toggle ~ ul .custom-mobile-menu-header button.mega-close::before,
  .mega-menu-toggle ~ ul .custom-mobile-menu-header button.mega-close::after {
    content: "";
    display: flex !important;
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #c1b9a7;
    transform: rotate(0deg);
    transition: transform 0.55s cubic-bezier(0.075, 0.82, 0.165, 1);
  }

  .mega-menu-toggle.mega-menu-open
    ~ ul
    .custom-mobile-menu-header
    button.mega-close::before {
    transform: rotate(45deg);
  }

  .mega-menu-toggle.mega-menu-open
    ~ ul
    .custom-mobile-menu-header
    button.mega-close::after {
    transform: rotate(-45deg);
  }

  .mega-menu-toggle ~ ul .custom-mobile-menu-header img {
    opacity: 0;
    transition: opacity 0.55s cubic-bezier(0.075, 0.82, 0.165, 1) 0.35s;
  }

  .mega-menu-toggle.mega-menu-open ~ ul .custom-mobile-menu-header img {
    opacity: 1;
  }

  /** Store Search **/

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle
    + #mega-menu-max_mega_menu_1
    .custom-mobile-menu-search-container
    .hamburger-toggle-store-search {
    opacity: 0;
    border: 2px solid;
    border-color: transparent;
    transform: translateY(20px);
    transition:
      border-color 0.4s ease 0.5s,
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.1s,
      opacity 0.4s ease 0.1s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    .custom-mobile-menu-search-container
    .hamburger-toggle-store-search {
    opacity: 1;
    border-color: #c1b9a7;
    transform: translateY(0);
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle
    + #mega-menu-max_mega_menu_1
    .custom-mobile-menu-search-container
    button
    svg {
    fill: #000;
    transition: fill 0.4s ease 0.1s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    .custom-mobile-menu-search-container
    button
    svg {
    fill: #c1b9a7;
  }

  .custom-mobile-menu-search-container {
    margin: 20px 0 40px 0;
    padding: 0 20px;
  }

  .hamburger-toggle-store-search {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    background-color: #faf7f2;
    border-radius: 100px;
    padding: 8px 12px 8px 16px;
    gap: 8px;
  }

  .hamburger-toggle-store-search .store-search-form {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .hamburger-toggle-store-search .store-search-field {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
  }

  .hamburger-toggle-store-search .store-search-field::placeholder {
    color: #bbb;
  }

  .hamburger-toggle-store-search .store-search-toggle {
    order: 2;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .hamburger-toggle-store-search .store-search-form {
    order: 1;
  }

  .hamburger-toggle-store-search .store-search-icon {
    width: 18px;
    height: 18px;
    color: #888;
  }

  /** Mobile Menu Items **/

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item
    a {
    opacity: 0;
    transform: translateY(40px);
    transition:
      color 0.4s ease,
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
      opacity 0.4s ease;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(1)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.13s,
      opacity 0.4s ease 0.13s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(2)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.19s,
      opacity 0.4s ease 0.19s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(3)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.25s,
      opacity 0.4s ease 0.25s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(4)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.31s,
      opacity 0.4s ease 0.31s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(5)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.37s,
      opacity 0.4s ease 0.37s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(6)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.43s,
      opacity 0.4s ease 0.43s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(7)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.49s,
      opacity 0.4s ease 0.49s;
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > li.mega-menu-item:nth-of-type(8)
    a {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.55s,
      opacity 0.4s ease 0.55s;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item
    > a.mega-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: the-seasons, sans-serif !important;
    font-size: 32px !important;
    font-weight: 300;
    height: auto !important;
    padding: 12px 20px;
    line-height: 1 !important;
    letter-spacing: -1px;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item
    > a.mega-menu-link
    > span.mega-indicator {
    font-size: 18px !important;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item {
    border-bottom: 1px solid #e0e0e00f;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item:last-of-type {
    margin-bottom: 40px;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item
    > a.mega-menu-link {
    color: #fff;
  }

  #mega-menu-wrap-max_mega_menu_1
    #mega-menu-max_mega_menu_1
    > li.mega-menu-item.mega-toggle-on
    > a.mega-menu-link {
    color: #c1b9a7;
    font-weight: 300 !important;
  }

  /** mobile menu footer **/

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle
    + #mega-menu-max_mega_menu_1
    > .custom-mobile-menu-footer {
    opacity: 0;
    transform: translateY(20px);
  }

  #mega-menu-wrap-max_mega_menu_1
    .mega-menu-toggle.mega-menu-open
    + #mega-menu-max_mega_menu_1
    > .custom-mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition:
      transform 0.6s cubic-bezier(0.76, 0, 0.24, 1) 0.64s,
      opacity 0.4s ease 0.64s;
  }

  .custom-mobile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0 20px;
    margin-top: auto;
    border-top: 1px solid #e0e0e00f;
  }

  .custom-mobile-menu-footer span {
    color: #5d5d5d;
  }

  .custom-mobile-menu-footer span a {
    color: #c1b9a7;
  }
}

/** mobile menu footer **/

@media screen and (max-width: 400px) {
  .custom-mobile-menu-footer {
    flex-direction: column;
    justify-content: center;
  }
}
