/* Kedvencek: egyszerű PHP-oldal, natív párbeszédablakokkal. */
.wishlist-heart { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.header-wishlist { position: relative; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 48px; color: var(--olive); }
.header-wishlist:hover { color: var(--gold); }
.wishlist-count { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 50%; background: var(--green); color: white; font: 400 11px/17px var(--sans); text-align: center; }
.product-card { position: relative; }
.product-card > .wishlist-save-button { position: absolute; z-index: 21; top: 10px; right: 10px; }
.wishlist-save-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 38px; height: 38px; padding: 7px; border: 1px solid var(--line); border-radius: 50%; background: var(--background); color: var(--olive); cursor: pointer; }
.wishlist-save-button .wishlist-heart { width: 23px; height: 23px; flex: none; }
.wishlist-save-button[aria-pressed="true"] { color: #B44E3B; }
.wishlist-save-button[aria-pressed="true"] .wishlist-heart { fill: currentColor; }
.wishlist-save-button:hover { border-color: var(--gold); color: var(--gold); }
.product-detail-wishlist { width: auto; height: auto; padding: 9px 14px; margin: 10px 0 0; border-radius: 4px; font-size: 14px; }
.wishlist-page { max-width: 1444px; min-height: 420px; padding: 28px 55px 56px; margin: auto; }
.wishlist-breadcrumb { color: var(--muted); font-size: 12px; margin-bottom: 30px; }
.wishlist-page h1 { color: var(--green); text-align: center; font: 300 38px/1.2 var(--display); }
.wishlist-intro { margin-top: 14px; color: var(--olive); text-align: center; }
.wishlist-storage-note { margin: 8px 0 30px; color: var(--muted); font-size: 13px; text-align: center; }
.wishlist-lists { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.wishlist-list-card, .wishlist-new-card { min-width: 0; min-height: 340px; padding: 22px; background: #fffffe; border: 1px solid transparent; border-radius: 5px; box-shadow: 0 8px 18px #524c3314; }
.wishlist-list-card:hover { border-color: var(--gold); }
.wishlist-list-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #f3f1eb; border: 1px solid var(--line); }
.wishlist-list-preview > .wishlist-heart { width: 64px; height: 64px; color: #c6b89e; stroke-width: 1; }
.wishlist-list-preview img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #fff; }
.wishlist-list-preview--grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3px; }
.wishlist-list-card h2 { margin: 18px 0 8px; color: var(--green); font: 600 18px/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.wishlist-list-card p { color: var(--olive); font-size: 14px; }
.wishlist-new-card { display: flex; justify-content: center; align-items: center; }
.wishlist-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 22px; border: 1px solid var(--olive); border-radius: 4px; background: var(--olive); color: white; font: 600 15px/1.4 var(--sans); cursor: pointer; }
.wishlist-button:hover { background: #625b3e; }
.wishlist-button:disabled { opacity: .6; cursor: wait; }
.wishlist-toolbar { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.wishlist-toolbar details { max-width: 100%; }
.wishlist-toolbar summary, .wishlist-back, .wishlist-text-button { color: var(--green); font: 400 14px/1.5 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.wishlist-text-button { border: 0; padding: 8px 0; background: none; cursor: pointer; }
.wishlist-edit-form { display: grid; gap: 10px; margin: 16px 0 8px; }
.wishlist-products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.wishlist-product { min-width: 0; }
.wishlist-product .product-media { aspect-ratio: 4 / 5 !important; }
.wishlist-product .product-card { height: auto; }
.wishlist-product .stock-badge, .wishlist-product .sale-badge { z-index: 2; }
.wishlist-remove-form { text-align: right; }
.wishlist-empty { display: grid; justify-items: center; gap: 18px; padding: 50px 20px; text-align: center; color: var(--olive); }
.wishlist-empty > .wishlist-heart { width: 60px; height: 60px; color: var(--gold); }
.wishlist-empty h2 { font: 400 26px/1.3 var(--serif); }
.wishlist-dialog { width: 440px; max-width: calc(100vw - 32px); padding: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--olive); background: var(--background); }
.wishlist-dialog::backdrop { background: #2f332166; }
.wishlist-dialog h2 { padding-right: 15px; margin-bottom: 24px; color: var(--green); font: 400 26px/1.2 var(--serif); }
.wishlist-dialog form { display: grid; gap: 12px; }
.wishlist-dialog label, .wishlist-edit-form label { font-size: 14px; }
.wishlist-dialog select, .wishlist-dialog input:not([type="hidden"]), .wishlist-edit-form input:not([type="hidden"]) { min-width: 0; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--olive); font: 400 16px/1.4 var(--sans); }
.wishlist-dialog-close { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; color: var(--olive); background: transparent; font-size: 28px; }
.wishlist-dialog-status { color: var(--terracotta); font-size: 14px; }
.wishlist-dialog-link { display: block; margin-top: 20px; font-size: 13px; text-decoration: underline; }
.wishlist-toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: calc(100vw - 48px); padding: 14px 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--background); color: var(--green); box-shadow: 0 4px 20px #0002; font-size: 14px; }
.wishlist-notice { margin: 20px 0; padding: 12px; background: #f3f1eb; }
@media(max-width:1024px) { .wishlist-products { grid-template-columns: repeat(3,minmax(0,1fr)); } .wishlist-lists { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) {
  .header-wishlist { flex-basis: 34px; width: 34px; height: 45px; }
  .header-wishlist .wishlist-heart { width: 24px; height: 24px; }
  .wishlist-page { padding: 24px 20px 40px; }
  .wishlist-page h1 { font-size: 30px; }
  .wishlist-intro { font-size: 14px; }
  .wishlist-lists { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .wishlist-list-card, .wishlist-new-card { min-height: 0; padding: 20px; }
  .wishlist-new-card { min-height: 160px; }
  .wishlist-products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .wishlist-product .product-info { padding: 12px; }
  .wishlist-product .product-info h3 { font-size: 18px; }
  .wishlist-dialog { padding: 24px; }
}

@media(min-width:768px) and (max-width:1024px) {
  .header-actions { flex: 0 0 auto; align-items: center; gap: 4px; }
}

.wishlist-save-button[aria-pressed="true"]:hover { color: #B44E3B; }
