/* Top-bar (highlighted region) tweaks injected via allnaturals_blocks_page_attachments. */

/* Ingredients List: add clipboard icon */
.nav__menu-link[data-drupal-link-system-path="ingredients/list"]::before {
  content: "📋 ";
  display: inline;
  margin-right: 0.25em;
}

/* Hide duplicate fields on ingredient term pages (shown in About section) */
.taxonomy-term.vocabulary-ingredients .field--name-description {
  display: none !important;
}


/* Cart: transparent background. */
.cart--cart-block,
.cart-block--summary,
.cart-block--link__expand,
.cart-block--summary__icon {
  background: transparent !important;
  box-shadow: none !important;
}

/* Ingredients Search Form */
.ingredients-search-wrapper {
  margin: 2rem 0 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f9f7 0%, #e8f5e9 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ingredients-search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.ingredients-search-input:focus {
  outline: none;
  border-color: #2f6b3a;
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.1);
  background: #fafbfa;
}

.ingredients-search-input::placeholder {
  color: #9ccc65;
}

.ingredients-search-submit {
  display: none;
}

/* Cart icon -> dark pink. The Commerce icon is an <img>, so it can't be recolored
   with `color`; hide it and paint a dark-pink cart with a CSS mask instead. */
.cart-block--summary__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.cart-block--summary__icon img { display: none !important; }
.cart-block--summary__icon::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background-color: #c2185b; /* dark pink */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zM7.17 14.75l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01-1.74-.95-3.86 7.01H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zM7.17 14.75l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01-1.74-.95-3.86 7.01H8.53L4.27 2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Center exposed filter on ingredients list */
.view-ingredients-teasers .views-exposed-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f9f7 0%, #e8f5e9 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.view-ingredients-teasers .views-exposed-form .form-group,
.view-ingredients-teasers .views-exposed-form > div {
  width: 100%;
  display: flex;
  justify-content: center;
}

.view-ingredients-teasers .views-exposed-form .form-item,
.view-ingredients-teasers .views-exposed-form input[type="text"],
.view-ingredients-teasers .views-exposed-form input[type="search"],
.view-ingredients-teasers .views-exposed-form select {
  width: 100%;
  max-width: 400px;
}

.view-ingredients-teasers .views-exposed-form input[type="text"],
.view-ingredients-teasers .views-exposed-form input[type="search"] {
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #c8e6c9;
  border-radius: 8px;
  font-family: inherit;
  background: #a8d5ba;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.view-ingredients-teasers .views-exposed-form input[type="text"]:focus,
.view-ingredients-teasers .views-exposed-form input[type="search"]:focus {
  outline: none;
  border-color: #2f6b3a;
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.1);
  background: #8ec5b0;
}

.view-ingredients-teasers .views-exposed-form .button {
  padding: 12px 28px;
  background: #2f6b3a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-ingredients-teasers .views-exposed-form .button:hover {
  background: #245231;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 107, 58, 0.2);
}

/* Center bottom elements on ingredients view */
.view-ingredients-teasers .views-pager,
.view-ingredients-teasers .view-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .view-ingredients-teasers .views-exposed-form {
    margin: 1rem auto 0.5rem auto;
    padding: 1.5rem;
  }
}


.site-logo {
  flex: 0 0 auto;
  align-items: center;
}

@media (max-width: 768px) {
  .site-logo-img {
    height: 58px;
  }
}
