.search-area {
  position: relative;
  flex: 1;
  min-width: 0;
  z-index: 5;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search-clear {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.search-clear svg {
  width: 16px;
  height: 16px;
}
.search-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  min-width: 300px;
  background: #fbf5eb;
  border-radius: 22px;
  padding: 17px;
  box-shadow: 0 18px 60px #503d1d26;
  border: 1px solid #fff7e5;
  z-index: 10;
}
.search-popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.search-scope {
  font-size: 9px;
  font-weight: 400;
  background: #eae5d7;
  padding: 3px 8px;
  border-radius: 20px;
}
#search-options {
  max-height: min(350px, 50dvh);
  overflow: auto;
  overscroll-behavior: contain;
}
.search-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}
.search-option:hover,
.search-option[aria-selected="true"] {
  background: #e8e8d7;
}
.search-thumbnail {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, var(--category-color), transparent 75%);
}
.search-thumbnail .category-illustration {
  width: 49px;
  height: 46px;
}
.search-option-title {
  font-size: 12px;
  line-height: 1.45;
  display: block;
  font-weight: 600;
}
.search-option-subtitle {
  font-size: 10px;
  color: var(--muted);
}
.search-option > .icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}
.search-footnote {
  margin: 13px 4px 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
}
#search-empty {
  font-size: 12px;
  padding: 16px 6px;
  color: var(--muted);
  margin-bottom: 0;
}
.recommendations {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 65px;
  padding: 30px 45px;
  position: relative;
  isolation: isolate;
}
.recommendations::before {
  content: "";
  position: absolute;
  inset: -35px -20px;
  background: radial-gradient(ellipse at 46% 50%, #ecdabc80, transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.recommendation-portrait {
  position: relative;
  width: min(100%, 280px);
  justify-self: center;
  aspect-ratio: 1331 / 1181;
}
.recommendation-portrait > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Csak az eredeti fotó alsó vágása simul el; az arc és a kéz fedő marad. */
  -webkit-mask-image: linear-gradient(#000 94%, transparent 100%);
  mask-image: linear-gradient(#000 94%, transparent 100%);
}
.recommendation-portrait > [data-icon] {
  position: absolute;
  right: 5%;
  bottom: 25%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #698043;
  transform: rotate(-12deg);
}
.recommendation-portrait > [data-icon] svg {
  width: 42px;
  height: 42px;
  stroke-width: 1;
}
.recommendation-copy .eyebrow {
  margin-bottom: 13px;
}
.recommendation-copy h2 {
  margin-bottom: 18px;
}
.recommendation-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 540px;
}
.recommendation-status {
  display: inline-block;
  font-size: 10px;
  color: #667541;
  background: #e5e8d477;
  border-radius: 20px;
  padding: 5px 12px;
}
.recommendation-copy > p.recommendation-label {
  font-size: 11px;
  margin: 25px 0 9px;
  color: var(--green);
  font-weight: 600;
}
.recommendation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
}
.recommendation-links button {
  padding: 6px 0;
  background: none;
  border: 0;
  color: var(--green);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.recommendation-links svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s;
}
.recommendation-links button:hover svg {
  transform: translateX(3px);
}
dialog.cart-drawer {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(460px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 28px 0 0 28px;
  padding: 0;
  background: var(--paper);
  box-shadow: -20px 0 80px #29311729;
  overflow: auto;
}
.cart-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-enter 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cart-drawer::backdrop {
  background: #20301c55;
  backdrop-filter: blur(5px);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px 20px;
  flex-shrink: 0;
}
.drawer-header .eyebrow {
  margin-bottom: 7px;
}
.drawer-header h2 {
  margin: 0;
  font-size: 31px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.drawer-header h2 span {
  font: 12px var(--sans);
  padding: 5px 9px;
  border-radius: 50%;
  background: #e3e6d2;
}
.drawer-content {
  padding: 10px 32px 25px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.drawer-bag {
  width: 135px;
  height: 125px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse, #dddcbc, transparent 72%);
  margin-bottom: 25px;
  color: #667b45;
}
.drawer-bag svg {
  width: 48px;
  height: 48px;
  stroke-width: 1;
}
.drawer-content > .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  line-height: 1.8;
  margin-bottom: 13px;
}
.drawer-content h3 {
  font: 30px/1.15 var(--serif);
  color: var(--green);
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.drawer-content > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 25px;
}
.drawer-content .button {
  font-size: 12px;
  gap: 15px;
}

.drawer-footer {
  display: flex;
  gap: 10px;
  padding: 20px 30px;
  background: linear-gradient(transparent, #eae0cd);
  align-items: center;
  flex-shrink: 0;
}
.drawer-footer p {
  font-size: 10px;
  line-height: 1.65;
  margin: 0;
}
.drawer-footer svg {
  width: 17px;
  height: 17px;
  color: #71835b;
}
@keyframes drawer-enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (max-width: 1100px) {
  .recommendations {
    gap: 32px;
    padding-inline: 20px;
  }
}
@media (max-width: 760px) {
  .search-area {
    order: 2;
    flex-basis: 100%;
    margin-top: 5px;
  }
  .search-area .search {
    margin-top: 0;
  }
  .search-popover {
    min-width: 0;
    padding: 12px;
    top: calc(100% + 8px);
  }
  .recommendations {
    grid-template-columns: 1fr;
    padding: 0 8px;
    gap: 0;
    margin-top: 45px;
  }
  .recommendation-portrait {
    width: 240px;
    justify-self: center;
  }
  .recommendation-copy h2 {
    font-size: 33px;
  }
  .recommendation-copy > p:not(.eyebrow) {
    font-size: 12px;
  }
  .recommendation-links {
    gap: 5px 18px;
  }
  .recommendation-links button {
    min-height: 44px;
  }
  .recommendations::before {
    inset-inline: 0;
  }
  dialog.cart-drawer {
    border-radius: 22px 0 0 22px;
    width: min(420px, 100%);
  }
  .drawer-header {
    padding: 24px;
  }
  .drawer-content {
    padding: 5px 24px 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer[open] {
    animation: none;
  }
  .recommendation-links button:hover svg {
    transform: none;
  }
}

/* Touch devices avoid a full-screen blur layer while scrolling a dialog. */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  dialog::backdrop,
  .cart-drawer::backdrop {
    backdrop-filter: none;
  }
}
