/* Teljes terméknevek megjelenítése kipontozás (...) nélkül a találati oldalon is */
.woocommerce-loop-product__title { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; -webkit-box-orient: unset !important; overflow: visible !important; text-overflow: unset !important; white-space: normal !important; height: auto !important; max-height: none !important; word-break: break-word; }

/* Találati oldal (/?s=...) gyors szűrősáv – HagaShop Navy & Narancs */
.ws-gs-archive-bar { max-width: 80rem; margin: 0 auto 1.5rem auto; padding: 14px 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 4px 16px rgba(15,41,66,0.04); font-family: inherit; }
.ws-gs-archive-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ws-gs-archive-Quick { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-gs-archive-speed { font-size: 12px; color: #64748b; font-weight: 600; }
.ws-gs-archive-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.ws-gs-cat-pill, .ws-gs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #f1f5f9; color: #334155; text-decoration: none !important; transition: all .15s ease; border: 1px solid transparent; cursor: pointer; }
.ws-gs-cat-pill:hover, .ws-gs-chip:hover { background: #e2e8f0; color: #0f172a; }
.ws-gs-cat-pill.active, .ws-gs-chip.active { background: #ea580c; color: #fff !important; border-color: #c2410c; box-shadow: 0 2px 8px rgba(234,88,12,0.28); }
.ws-gs-cat-pill span { font-size: 11px; opacity: 0.8; background: rgba(0,0,0,0.08); padding: 1px 6px; border-radius: 999px; }
.ws-gs-cat-pill.active span { background: rgba(255,255,255,0.22); color: #fff; }
.ws-gs-chip-reset { background: #fef2f2; color: #b91c1c !important; }

/* Spotlight Modal Backdrop & Container (z-index > #hagashop-headerpromo 999999 & #wpadminbar 99999!) */
#ws-gs-backdrop { display: none; position: fixed; inset: 0; z-index: 1000010; background: rgba(15, 23, 42, 0.64); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
#ws-gs-backdrop.open { display: block; opacity: 1; }

#ws-gs-modal, #ws-gs-modal *, #ws-gs-modal *::before, #ws-gs-modal *::after { box-sizing: border-box; }
#ws-gs-modal { display: none; position: fixed; top: 3vh; left: 50%; transform: translateX(-50%) scale(0.98); z-index: 1000020; width: calc(100% - 24px); max-width: 1140px; max-height: 92vh; background: #ffffff; border-radius: 24px; box-shadow: 0 25px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0,0,0,0.06); flex-direction: column; overflow: hidden; opacity: 0; transition: opacity .18s ease, transform .18s ease; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; }
#ws-gs-modal.open { display: flex; opacity: 1; transform: translateX(-50%) scale(1); }

@media (max-width: 860px) {
    #ws-gs-modal { inset: 0 !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; transform: none !important; width: 100% !important; max-width: 100% !important; height: 100% !important; height: 100dvh !important; max-height: 100dvh !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
}

/* Header Search Input Bar */
.ws-gs-header { width: 100%; max-width: 100%; min-width: 0; padding: 14px 18px; border-bottom: 1px solid #eef0f3; display: flex; align-items: center; gap: 10px; background: #fff; flex-shrink: 0; margin: 0; }
.ws-gs-input-wrap { position: relative; flex: 1 1 0%; min-width: 0; display: flex; align-items: center; background: #f1f5f9; border: 1.5px solid transparent; border-radius: 14px; padding: 0 13px; transition: all .16s ease; }
.ws-gs-input-wrap:focus-within { background: #fff; border-color: #f97316; box-shadow: 0 0 0 3px rgba(249,115,22,0.16); }
.ws-gs-search-icon { width: 20px; height: 20px; color: #ea580c; flex-shrink: 0; }
#ws-gs-input { width: 100%; min-width: 0; border: none !important; background: transparent !important; outline: none !important; box-shadow: none !important; padding: 12px 10px; font-size: 16px; font-weight: 500; color: #0f172a; -webkit-appearance: none; appearance: none; }
#ws-gs-input::-webkit-search-cancel-button, #ws-gs-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
#ws-gs-input::placeholder { color: #94a3b8; font-weight: 400; }
.ws-gs-clear-btn { display: none; background: #e2e8f0; border: none; color: #475569; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; padding: 0; }
.ws-gs-clear-btn.visible { display: inline-flex; }
.ws-gs-clear-btn:hover { background: #cbd5e1; color: #0f172a; }
.ws-gs-close-btn { background: #f1f5f9; border: none; color: #334155; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.ws-gs-close-btn:hover { background: #0f2942; color: #fff; }

@media (max-width: 860px) {
    .ws-gs-header { padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px 12px; gap: 8px; }
    .ws-gs-input-wrap { height: 44px; padding: 0 11px; border-radius: 12px; }
    .ws-gs-search-icon { width: 18px; height: 18px; }
    #ws-gs-input { padding: 0 8px; height: 42px; font-size: 16px; }
    .ws-gs-close-btn { width: 38px; height: 38px; border-radius: 11px; }
}

/* Body Layout (2-Column Desktop, Native Scrollable Stack Mobile) */
.ws-gs-body { display: grid; grid-template-columns: 265px minmax(0, 1fr); width: 100%; max-width: 100%; flex: 1 1 0%; min-height: 0; min-width: 0; overflow: hidden; }
@media (max-width: 860px) {
    .ws-gs-body { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

/* Sidebar Facets & Quick Filters */
.ws-gs-sidebar { background: #f8fafc; border-right: 1px solid #eef0f3; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 860px) {
    #ws-gs-modal.is-init .ws-gs-sidebar { display: none !important; }
    .ws-gs-sidebar { width: 100%; max-width: 100%; border-right: none; border-bottom: 1px solid #eef0f3; padding: 8px 12px; overflow-x: auto; overflow-y: hidden; flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; background: #fff; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
    .ws-gs-sidebar::-webkit-scrollbar { display: none; }
    .ws-gs-side-section { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
    .ws-gs-side-section > .ws-gs-side-title, .ws-gs-desktop-only { display: none !important; }
}
.ws-gs-side-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin: 0 0 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-gs-clear-recents { background: none; border: none; padding: 0; font-size: 11px; font-weight: 600; color: #94a3b8; cursor: pointer; text-transform: none; letter-spacing: 0; flex-shrink: 0; }
.ws-gs-clear-recents:hover { color: #ef4444; }

.ws-gs-facet-list { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) {
    .ws-gs-facet-list { flex-direction: row; gap: 6px; }
}
.ws-gs-facet-btn { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #334155; font-size: 13px; font-weight: 500; line-height: 1.3; cursor: pointer; transition: all .12s; white-space: normal; }
.ws-gs-facet-btn span.ws-gs-fname { word-break: break-word; }
@media (max-width: 860px) {
    .ws-gs-facet-btn { align-items: center; white-space: nowrap; width: auto; background: #f1f5f9; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; gap: 5px; }
}
.ws-gs-facet-btn:hover { background: #e2e8f0; color: #0f172a; }
.ws-gs-facet-btn.active { background: #ea580c !important; color: #fff !important; font-weight: 700; box-shadow: 0 2px 6px rgba(234,88,12,0.26); }
.ws-gs-facet-cnt { font-size: 11px; background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 999px; font-weight: 600; flex-shrink: 0; }
.ws-gs-facet-btn.active .ws-gs-facet-cnt { background: rgba(255,255,255,0.22); color: #fff; }

.ws-gs-price-inputs { display: flex; align-items: center; gap: 6px; }
.ws-gs-price-inputs input { width: 100%; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12.5px; background: #fff; color: #0f172a; }

/* Main Results Area */
#ws-gs-main.ws-gs-main { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; padding: 16px 20px; overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; background: #fff; }
@media (max-width: 860px) {
    #ws-gs-main.ws-gs-main { overflow-y: visible; overflow-x: hidden !important; padding: 10px 12px 18px 12px !important; }
}

/* Suggestion Rails (Recent & Popular – 1-row swipe on mobile!) */
.ws-gs-sugg-wrap { width: 100%; max-width: 100%; min-width: 0; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.ws-gs-sugg-group { width: 100%; max-width: 100%; min-width: 0; margin-bottom: 10px; }
.ws-gs-sugg-group:last-child { margin-bottom: 0; }
.ws-gs-chips-row { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; max-width: 100%; min-width: 0; }
.ws-gs-query-chip { background: #f1f5f9; border: 1px solid #e2e8f0; color: #1e293b; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all .14s; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.ws-gs-query-chip:hover { background: #ea580c; color: #fff; border-color: #ea580c; }
.ws-gs-query-chip.hot { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.ws-gs-query-chip.hot:hover { background: #ea580c; color: #fff; border-color: #ea580c; }

@media (max-width: 640px) {
    .ws-gs-sugg-wrap { margin-bottom: 10px; padding-bottom: 8px; }
    .ws-gs-sugg-group { margin-bottom: 8px; }
    .ws-gs-sugg-wrap .ws-gs-side-title { font-size: 10.5px; margin-bottom: 5px; }
    .ws-gs-chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; gap: 6px; padding-right: 14px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%); }
    .ws-gs-chips-row::-webkit-scrollbar { display: none; }
    .ws-gs-query-chip { padding: 5px 11px; font-size: 12px; max-width: 210px; }
}

/* Toolbar */
.ws-gs-toolbar { width: 100%; max-width: 100%; min-width: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
.ws-gs-meta { font-size: 13px; color: #475569; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.ws-gs-speed-pill { font-size: 11px; font-weight: 700; color: #c2410c; background: #fff7ed; padding: 2px 8px; border-radius: 999px; border: 1px solid #fed7aa; }
.ws-gs-sort-select { padding: 6px 10px; border-radius: 9px; border: 1px solid #e2e8f0; font-size: 12.5px; font-weight: 600; color: #334155; background: #f8fafc; cursor: pointer; max-width: 100%; }
#ws-gs-modal.is-init .ws-gs-sort-select { display: none; }
@media (max-width: 640px) {
    .ws-gs-toolbar { margin-bottom: 8px; padding-bottom: 6px; flex-wrap: nowrap; }
    #ws-gs-modal.is-init .ws-gs-toolbar { border-bottom: none; padding-bottom: 0; margin-bottom: 8px; }
    .ws-gs-speed-pill { display: none !important; }
    .ws-gs-meta { font-size: 12.5px; min-width: 0; overflow: hidden; }
    .ws-gs-sort-select { padding: 5px 8px; font-size: 12px; max-width: 148px; flex-shrink: 0; }
}

/* Product Cards Grid */
.ws-gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; width: 100%; max-width: 100%; min-width: 0; }
@media (max-width: 640px) {
    .ws-gs-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.ws-gs-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border: 1px solid #eef0f3; border-radius: 16px; padding: 12px; background: #fff; transition: all .16s ease; text-decoration: none !important; color: inherit; }
.ws-gs-card:hover, .ws-gs-card.kb-active { border-color: #f97316; box-shadow: 0 10px 26px rgba(15,41,66,0.09); transform: translateY(-2px); }
@media (max-width: 640px) {
    .ws-gs-card { flex-direction: row; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; }
    .ws-gs-card:hover { transform: none; box-shadow: none; }
}

.ws-gs-img-box { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 180px; background: #f8fafc; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
    .ws-gs-img-box { width: 72px; height: 72px; max-height: 72px; margin-bottom: 0; border-radius: 10px; }
}
.ws-gs-img-box img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s ease; }
.ws-gs-card:hover .ws-gs-img-box img { transform: scale(1.05); }

.ws-gs-sale-badge { position: absolute; top: 6px; left: 6px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 999px; box-shadow: 0 2px 6px rgba(239,68,68,0.3); }
@media (max-width: 640px) {
    .ws-gs-sale-badge { top: 4px; left: 4px; font-size: 9.5px; padding: 1px 5px; }
}

.ws-gs-info { display: flex; flex-direction: column; flex: 1 1 0%; min-width: 0; max-width: 100%; overflow: hidden; }
.ws-gs-cat-line { font-size: 11px; color: #64748b; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; max-width: 100%; }
.ws-gs-title { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.35; display: block; white-space: normal; overflow-wrap: anywhere; word-break: break-word; margin: 0 0 5px 0; text-decoration: none !important; max-width: 100%; }
.ws-gs-title:hover { color: #ea580c; }
@media (max-width: 640px) {
    .ws-gs-cat-line { font-size: 10.5px; margin-bottom: 1px; }
    .ws-gs-title { font-size: 13px; line-height: 1.28; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
mark.ws-gs-hl { background: #fef08a; color: #0f172a; padding: 0 2px; border-radius: 3px; font-weight: 800; }

.ws-gs-stock-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 6px; font-size: 11px; margin-bottom: 6px; min-width: 0; }
.ws-gs-stock-own { color: #059669; font-weight: 700; }
.ws-gs-stock-sup { color: #0284c7; font-weight: 600; }
.ws-gs-stock-out { color: #94a3b8; font-weight: 600; }
.ws-gs-sku { color: #94a3b8; font-family: ui-monospace, monospace; font-size: 10.5px; word-break: break-all; }
@media (max-width: 480px) {
    .ws-gs-stock-row { margin-bottom: 4px; font-size: 10.5px; }
    .ws-gs-sku { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.ws-gs-bottom-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; border-top: 1px solid #f1f5f9; min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
    .ws-gs-bottom-row { padding-top: 3px; border-top: none; flex-wrap: wrap; }
}
.ws-gs-price-wrap { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
@media (max-width: 640px) {
    .ws-gs-price-wrap { flex-direction: row; align-items: baseline; gap: 5px; flex-wrap: wrap; }
}
.ws-gs-old-price { font-size: 11px; color: #94a3b8; text-decoration: line-through; white-space: nowrap; }
.ws-gs-cur-price { font-size: 14.5px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.ws-gs-cur-price.sale { color: #dc2626; }
.ws-gs-wh-badge { display: inline-block; font-size: 10px; font-weight: 700; color: #166534; background: #dcfce7; border: 1px solid #86efac; border-radius: 999px; padding: 1px 6px; margin-bottom: 2px; width: fit-content; }

.ws-gs-cart-btn { background: #0f2942; color: #fff !important; border: none; border-radius: 10px; padding: 7px 11px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: all .15s; text-decoration: none !important; white-space: nowrap; flex-shrink: 0; }
.ws-gs-cart-btn:hover { background: #ea580c; transform: scale(1.03); }
.ws-gs-cart-btn.added { background: #059669 !important; }
@media (max-width: 640px) {
    .ws-gs-cart-btn { padding: 6px 10px; font-size: 11.5px; border-radius: 9px; background: #ea580c; }
}

/* Direct Matched Category Links */
.ws-gs-mcat-box { width: 100%; max-width: 100%; min-width: 0; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.ws-gs-mcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; width: 100%; max-width: 100%; min-width: 0; }
.ws-gs-mcat-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; text-decoration: none !important; color: #0f172a !important; transition: all .14s ease; min-width: 0; }
.ws-gs-mcat-card:hover { border-color: #f97316; background: #fff7ed; transform: translateY(-1px); }
.ws-gs-mcat-txt { display: flex; flex-direction: column; min-width: 0; }
.ws-gs-mcat-path { font-size: 10.5px; color: #64748b; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-gs-mcat-name { font-size: 12.5px; font-weight: 700; color: #0f172a; line-height: 1.3; word-break: break-word; }
.ws-gs-mcat-cnt { font-size: 11px; font-weight: 700; color: #c2410c; background: #ffedd5; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
@media (max-width: 640px) {
    .ws-gs-mcat-box { margin-bottom: 8px; padding-bottom: 8px; }
    .ws-gs-mcat-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; gap: 7px; padding-right: 14px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 18px), transparent 100%); }
    .ws-gs-mcat-grid::-webkit-scrollbar { display: none; }
    .ws-gs-mcat-card { flex-shrink: 0; max-width: 235px; padding: 6px 10px; border-radius: 10px; }
    .ws-gs-mcat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
}

/* Footer Bar */
.ws-gs-footer { width: 100%; max-width: 100%; min-width: 0; padding: 11px 20px; background: #f8fafc; border-top: 1px solid #eef0f3; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; }
.ws-gs-kbd-hints { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 12px; }
.ws-gs-kbd { background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; padding: 1px 6px; font-size: 11px; font-family: monospace; font-weight: 700; color: #334155; box-shadow: 0 1px 0 #cbd5e1; }
.ws-gs-view-all-btn { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff !important; border: none; border-radius: 12px; padding: 10px 18px; font-size: 13.5px; font-weight: 800; cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(234,88,12,0.28); transition: all .15s; margin-left: auto; max-width: 100%; }
.ws-gs-view-all-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
@media (max-width: 640px) {
    .ws-gs-kbd-hints { display: none; }
    #ws-gs-modal:not(.has-more) .ws-gs-footer { display: none; }
    .ws-gs-footer { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px; background: #fff; }
    .ws-gs-view-all-btn { width: 100%; margin-left: 0; padding: 11px 14px; font-size: 13px; border-radius: 11px; }
}
