/*
Theme Name: Amfissa
Theme URI: https://amfissa.qodeinteractive.com
Description: Organic Olive Shop Theme
Author: Mikado Themes
Author URI: https://qodeinteractive.com
Text Domain: amfissa
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, threaded-comments, translation-ready
Version: 1.3
License URI: GNU General Public License v2 or later
License: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* Cabecera: buscador accesible de productos */
#qodef-top-area {
  background: #fff;
  border-bottom: 1px solid #ded8d3;
}
#qodef-top-area-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
#qodef-top-area .qodef-widget-holder.qodef--left {
  width: 100%;
  justify-content: flex-start;
}
.ardare-header-product-search {
  width: min(100%, 430px);
  margin: 0;
}
.ardare-header-product-search .qodef-search-form-inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.ardare-header-product-search .ardare-product-search-field {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #65574f;
  border-radius: 3px;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
}
.ardare-header-product-search .ardare-product-search-field::placeholder {
  color: #595959;
  opacity: 1;
}
.ardare-header-product-search .ardare-product-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid #56321f;
  border-radius: 3px;
  background: #56321f;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.ardare-search-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.ardare-search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}
.ardare-header-product-search .ardare-product-search-field:focus-visible,
.ardare-header-product-search .ardare-product-search-button:focus-visible {
  outline: 3px solid #a65316;
  outline-offset: 3px;
}
.ardare-header-product-search .ardare-product-search-button:hover {
  background: #402416;
  border-color: #402416;
}
@media (max-width: 1024px) {
  #qodef-top-area { display: none; }
  #qodef-page-mobile-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  #qodef-page-mobile-header-inner > .qodef-mobile-header-logo-link { grid-column: 1; grid-row: 1; }
  #qodef-page-mobile-header-inner > .qodef-mobile-header-opener { grid-column: 2; grid-row: 1; }
  #qodef-page-mobile-header-inner > .qodef-widget-holder {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 12px 0 14px;
  }
  #qodef-page-mobile-header-inner .ardare-header-product-search { width: 100%; }
}
@media (max-width: 359px) {
  .ardare-header-product-search .qodef-search-form-inner { gap: 6px; }
  .ardare-header-product-search .ardare-product-search-button { min-width: 82px; padding-inline: 10px; }
}

/* La cabecera móvil crece para alojar el buscador en una segunda fila */
@media (max-width: 1024px) {
  #qodef-page-mobile-header,
  #qodef-page-mobile-header-inner {
    height: auto !important;
    min-height: 0;
  }
  #qodef-page-mobile-header-inner {
    grid-template-rows: auto auto;
  }
}

/* Restablece el botón de texto frente a los estilos de búsqueda del tema */
.ardare-header-product-search .qodef-search-form-inner {
  display: flex !important;
  width: 100%;
  box-sizing: border-box;
}
.ardare-header-product-search .ardare-product-search-field {
  position: static !important;
  width: auto !important;
  flex: 1 1 0%;
}
.ardare-header-product-search .ardare-product-search-button {
  position: static !important;
  flex: 0 0 auto;
  background-color: #56321f !important;
  border-color: #56321f !important;
  color: #fff !important;
  font-size: 16px !important;
}
.ardare-header-product-search .ardare-product-search-button span:last-child {
  color: #fff !important;
  font-size: 16px !important;
}
.ardare-header-product-search .ardare-product-search-button::after { content: none !important; display: none !important; }

@media (max-width: 1024px) {
  #qodef-page-mobile-header-inner > .qodef-widget-holder,
  #qodef-page-mobile-header-inner .qodef-mobile-header-widget-area-one,
  #qodef-page-mobile-header-inner .ardare-header-product-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none;
    box-sizing: border-box;
  }
  #qodef-page-mobile-header-inner .ardare-header-product-search .qodef-search-form-inner {
    width: 100% !important;
  }
}

@media (min-width: 1025px) {
  #qodef-top-area-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  #qodef-top-area .qodef-top-bar-widget.ardare-header-product-search {
    width: min(100%, 430px) !important;
  }
}

@media (min-width: 1025px) {
  #qodef-page-wrapper #qodef-top-area-inner.qodef-content-grid {
    box-sizing: content-box;
    padding: 10px 0 !important;
  }
}

.ardare-header-product-search .ardare-product-search-button,
.ardare-header-product-search .ardare-product-search-button span:last-child {
  letter-spacing: normal !important;
}
