/* Compiled template scope: .pg-template */
/* ==========================================================================
   COMPONENT: HEADER — single-tier sticky
   ========================================================================== */

html.is-scroll-locked:has(body.pg-template),
body.pg-template.is-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* --- Announcement Bar --- */
.pg-template .hdr-announce {
    background: var(--announce-bg, var(--zinc-900));
    color: var(--announce-text, rgba(255,255,255,.88));
    text-align: center;
    padding: 9px 48px;
    font-size: 12px;
    letter-spacing: .02em;
    position: relative;
    z-index: 200;
}
.pg-template .hdr-announce__content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: min(100%, 960px);
}
.pg-template .hdr-announce__icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--announce-accent, var(--color-brand));
}
.pg-template .hdr-announce__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pg-template .hdr-announce a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--announce-accent, var(--color-brand));
    text-decoration: none;
    font-weight: 700;
}
.pg-template .hdr-announce a::before {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}
.pg-template .hdr-announce a::after {
    content: "›";
    font-size: 16px;
    line-height: 1;
    transition: transform .18s ease;
}
.pg-template .hdr-announce a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pg-template .hdr-announce a:hover::after {
    transform: translateX(2px);
}
.pg-template .hdr-announce__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--announce-text, rgba(255,255,255,.55));
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.pg-template .hdr-announce__close:hover { color: var(--announce-accent, var(--color-text-on-brand)); }

@media (max-width: 767px) {
    .pg-template .hdr-announce--hide-mobile {
        display: none !important;
    }
}

/* --- Main Header --- */
.pg-template .site-header {
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 200;
    transition: box-shadow .25s ease, background .25s ease;
}
.pg-template .site-header.is-scrolled {
    background: color-mix(in srgb, var(--color-surface) 98%, transparent);
    box-shadow: 0 2px 20px rgba(0,0,0,.07);
}

.pg-template .site-header-spacer {
    display: none;
    height: 0;
    flex-shrink: 0;
}

/* --- Inner --- */
.pg-template .hdr-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: visible;
}

.pg-template .hdr-start {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pg-template .hdr-actions {
    justify-self: end;
}

/* --- Brand --- */
.pg-template .hdr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
}
.pg-template .hdr-brand img {
    height: 36px;
    max-height: 36px;
    width: auto;
    object-fit: contain;
}
.pg-template .hdr-brand__text {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .01em;
    color: var(--color-text);
}

/* --- Inline arama (masaüstü) --- */
.pg-template .hdr-search-wrap {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-self: center;
    z-index: 210;
}

/* Modal / lightbox açıkken sabit arama katmanını gizle */
body.pg-template.is-lightbox-open .hdr-search-wrap,
body.pg-template.is-review-modal-open .hdr-search-wrap,
body.pg-template.is-sale-cart-open .hdr-search-wrap,
body.pg-template.sale-cart-modal-open .hdr-search-wrap,
body.pg-template.is-size-guide-open .hdr-search-wrap {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.pg-template .hdr-search-inline {
    display: none;
    align-items: center;
    gap: 0;
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: var(--color-surface);
    transition: border-color .18s ease, box-shadow .18s ease, border-radius .18s ease;
}

.pg-template .hdr-search-wrap.is-open .hdr-search-inline {
    border-color: var(--color-border);
    border-bottom-color: var(--color-border);
    border-radius: 10px 10px 0 0;
    box-shadow: none;
}

.pg-template .hdr-search-wrap.is-open .hdr-search {
    border-color: var(--color-border);
}

.pg-template .hdr-search-inline :focus,
.pg-template .hdr-search-inline :focus-visible {
    outline: none;
    box-shadow: none;
}

.pg-template .hdr-search-inline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-muted);
    pointer-events: none;
}

.pg-template .hdr-search-inline__icon svg {
    width: 18px;
    height: 18px;
}

.pg-template .hdr-search-inline__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.pg-template .hdr-search-inline__clear svg {
    width: 16px;
    height: 16px;
}

.pg-template .hdr-search-inline__clear:hover {
    background: rgba(184, 147, 90, 0.1);
    color: var(--color-brand);
}

.pg-template .hdr-search-inline__clear[hidden] {
    display: none !important;
}

.pg-template .hdr-search-inline__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    background: transparent;
    padding: 0 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.pg-template .hdr-search-inline__input::-webkit-search-decoration,
.pg-template .hdr-search-inline__input::-webkit-search-cancel-button,
.pg-template .hdr-search-inline__input::-webkit-search-results-button,
.pg-template .hdr-search-inline__input::-webkit-search-results-decoration {
    display: none;
    -webkit-appearance: none;
}

.pg-template .hdr-search-inline__input::placeholder {
    color: var(--color-muted);
}

.pg-template .hdr-search-trigger--mobile {
    display: flex;
}

@media (min-width: 1024px) {
    .pg-template .hdr-search-inline {
        display: flex;
    }

    .pg-template .hdr-actions .hdr-search-trigger--mobile {
        display: none !important;
    }

    .pg-template .hdr-search-mobile-close {
        display: none;
    }

    .pg-template .hdr-search-wrap {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 520px;
        height: auto;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        pointer-events: none;
        z-index: 210;
        margin: 0 auto;
    }

    .pg-template .hdr-search-mobile-bar {
        display: flex;
        align-items: center;
        width: 100%;
        pointer-events: auto;
    }
}

/* --- Kategori şeridi (2. satır) --- */
@keyframes pg-hdrCatsReveal {
    0% {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-8px) scaleY(0.82);
        opacity: 0;
        filter: blur(5px);
        max-height: 0;
        border-top-color: transparent;
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateY(0) scaleY(1);
        opacity: 1;
        filter: blur(0);
        max-height: 56px;
        border-top-color: rgba(15, 23, 42, 0.06);
    }
}

@keyframes pg-hdrCatsHide {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translateY(0) scaleY(1);
        opacity: 1;
        filter: blur(0);
        max-height: 56px;
        border-top-color: rgba(15, 23, 42, 0.06);
    }
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-8px) scaleY(0.82);
        opacity: 0;
        filter: blur(5px);
        max-height: 0;
        border-top-color: transparent;
    }
}

.pg-template .hdr-cats-bar {
    position: relative;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--color-surface);
    transform-origin: top center;
    overflow: visible;
}

.pg-template .hdr-cats-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(208, 164, 89, 0.15) 15%,
        var(--color-brand) 50%,
        rgba(208, 164, 89, 0.15) 85%,
        transparent 100%
    );
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.54s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.54s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 3;
    pointer-events: none;
}

.pg-template .site-header.is-cats-reveal .hdr-cats-bar {
    animation: pg-hdrCatsReveal 0.88s cubic-bezier(0.65, 0, 0.35, 1) both;
    pointer-events: auto;
}

.pg-template .site-header.is-cats-reveal .hdr-cats-bar::after {
    transform: scaleX(1);
    opacity: 1;
    transition-duration: 0.88s;
}

.pg-template .site-header.is-cats-hiding .hdr-cats-bar {
    animation: pg-hdrCatsHide 0.54s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    pointer-events: none;
}

.pg-template .site-header.is-cats-hiding .hdr-cats-bar::after {
    transform: scaleX(0);
    opacity: 0;
}

.pg-template .site-header.is-cats-collapsed .hdr-cats-bar {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-8px) scaleY(0.82);
    opacity: 0;
    filter: blur(5px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    border-top-color: transparent;
    animation: none;
}

.pg-template .site-header.is-cats-collapsed .hdr-mega {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.pg-template .site-header.is-cats-hiding .hdr-cats-bar {
    overflow: hidden;
}

/* Mega açıkken şerit gizleme / kırpma uygulanmasın */
.pg-template .hdr-cats-bar.is-mega-open,
.pg-template .site-header.is-cats-collapsed .hdr-cats-bar.is-mega-open {
    clip-path: none;
    transform: none;
    opacity: 1;
    filter: none;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    border-top-color: rgba(15, 23, 42, 0.06);
}

.pg-template .site-header.is-cats-collapsed .hdr-cats-bar.is-mega-open .hdr-mega {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    .pg-template .site-header.is-cats-reveal .hdr-cats-bar,
    .pg-template .site-header.is-cats-hiding .hdr-cats-bar {
        animation: none;
    }

    .pg-template .site-header.is-cats-collapsed .hdr-cats-bar {
        transform: none;
        filter: none;
        clip-path: none;
        transition: max-height 0.2s ease, opacity 0.2s ease;
    }

    .pg-template .hdr-cats-bar::after {
        display: none;
    }
}

.pg-template .hdr-cats-bar__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.pg-template .hdr-cats-bar__scroll-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.pg-template .hdr-cats-bar__utils {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.pg-template .hdr-cats-bar__util {
    padding: 11px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease;
}

.pg-template .hdr-cats-bar__util:hover {
    color: var(--color-brand);
}

@media (min-width: 1024px) {
    .pg-template .hdr-cats-bar__utils {
        display: flex;
    }
}

.pg-template .hdr-cats-bar__scroll {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
}

.pg-template .hdr-cats-bar__scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.pg-template .hdr-cats-bar__scroll.is-dragging .hdr-cats-bar__link {
    pointer-events: none;
}

.pg-template .hdr-cats-bar__scroll::-webkit-scrollbar {
    display: none;
}

.pg-template .hdr-cats-bar__mega-wrap {
    position: relative;
    flex-shrink: 0;
    margin-right: 4px;
    padding-right: 10px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.pg-template .hdr-cats-bar__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin: 0;
    padding: 11px 12px 11px 0;
    border: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    white-space: nowrap;
    transition: color .16s ease;
}

.pg-template .hdr-cats-bar__all:hover,
.pg-template .hdr-cats-bar.is-mega-open .hdr-cats-bar__all {
    color: var(--color-brand);
}

.pg-template .hdr-cats-bar__link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    flex-shrink: 0;
    cursor: pointer;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    -webkit-user-drag: none;
    user-select: none;
    transition: color .16s ease, border-color .16s ease;
}

.pg-template .hdr-cats-bar__link:hover:not(.is-active) {
    color: var(--color-brand);
}

.pg-template .hdr-cats-bar__link.is-active,
.pg-template .hdr-cats-bar__link.is-active:hover {
    color: var(--color-brand);
    font-weight: 600;
    border-bottom-color: var(--color-brand);
}

@media (max-width: 1023px) {
    html:has(body.pg-template),
    body.pg-template,
    .pg-template .app-shell,
    .pg-template .app-main {
        overflow-x: clip;
        max-width: 100%;
    }

    .pg-template .site-header {
        position: fixed;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--color-surface);
        transform: none !important;
    }

    .pg-template .site-header-spacer {
        display: block;
        height: var(--site-header-h, 68px);
    }

    .pg-template .hdr-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0 12px;
        gap: 8px;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .pg-template .hdr-search-wrap:not(.is-mobile-open) {
        display: none !important;
    }

    .pg-template .hdr-brand {
        min-width: 0;
    }

    .pg-template .hdr-brand__text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 42vw;
        font-size: 15px;
    }

    .pg-template .hdr-actions {
        --hdr-action-size: 38px;
        --hdr-action-icon: 19px;
        --hdr-action-gap: 6px;
    }

    .pg-template .hdr-cta {
        width: var(--hdr-action-size);
        min-width: var(--hdr-action-size);
        padding: 0;
        gap: 0;
    }

    .pg-template .hdr-cta span {
        display: none;
    }

    /* Mobilde kategori şeridi: tek satır yatay kaydırma + Tüm Kategoriler sabit */
    .pg-template .hdr-cats-bar {
        display: block;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        background: var(--color-surface);
        overflow: hidden;
        max-width: 100%;
    }

    .pg-template .hdr-cats-bar__inner {
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        gap: 0;
        max-width: 100%;
        min-width: 0;
    }

    .pg-template .hdr-cats-bar__mega-wrap {
        display: none !important;
    }

    .pg-template .hdr-cats-bar__scroll-wrap {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        width: 100%;
    }

    .pg-template .hdr-cats-bar__scroll {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 12px;
        cursor: grab;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .pg-template .hdr-cats-bar__scroll::-webkit-scrollbar {
        display: none;
    }

    .pg-template .hdr-cats-bar__scroll.is-dragging {
        cursor: grabbing;
    }

    .pg-template .hdr-cats-bar__link {
        flex: 0 0 auto;
        padding: 11px 12px;
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        font-size: 12px;
        background: transparent;
        white-space: nowrap;
    }

    .pg-template .hdr-cats-bar__link.is-active,
    .pg-template .hdr-cats-bar__link.is-active:hover {
        border-bottom-color: var(--color-brand);
        background: transparent;
    }

    .pg-template .site-header.is-cats-reveal .hdr-cats-bar {
        animation: pg-hdrCatsReveal 0.88s cubic-bezier(0.65, 0, 0.35, 1) both;
        pointer-events: auto;
    }

    .pg-template .site-header.is-cats-reveal .hdr-cats-bar::after {
        transform: scaleX(1);
        opacity: 1;
        transition-duration: 0.88s;
    }

    .pg-template .site-header.is-cats-hiding .hdr-cats-bar {
        animation: pg-hdrCatsHide 0.54s cubic-bezier(0.65, 0, 0.35, 1) forwards;
        pointer-events: none;
        overflow: hidden;
    }

    .pg-template .site-header.is-cats-hiding .hdr-cats-bar::after {
        transform: scaleX(0);
        opacity: 0;
    }

    .pg-template .site-header.is-cats-collapsed .hdr-cats-bar {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-8px) scaleY(0.82);
        opacity: 0;
        filter: blur(5px);
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        border-top-color: transparent;
        animation: none;
    }

    .pg-template .hdr-mega {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .pg-template .hdr-brand__text {
        display: none;
    }
}

/* Masaüstü: kaydırınca kategori şeridi gizleme / geri açma animasyonu */
@media (min-width: 1024px) {
    .pg-template .site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
    }

    .pg-template .site-header.is-cats-reveal .hdr-cats-bar {
        animation: pg-hdrCatsReveal 0.88s cubic-bezier(0.65, 0, 0.35, 1) both;
        pointer-events: auto;
    }

    .pg-template .site-header.is-cats-reveal .hdr-cats-bar::after {
        transform: scaleX(1);
        opacity: 1;
        transition-duration: 0.88s;
    }

    .pg-template .site-header.is-cats-hiding .hdr-cats-bar {
        animation: pg-hdrCatsHide 0.54s cubic-bezier(0.65, 0, 0.35, 1) forwards;
        pointer-events: none;
        overflow: hidden;
    }

    .pg-template .site-header.is-cats-hiding .hdr-cats-bar::after {
        transform: scaleX(0);
        opacity: 0;
    }

    .pg-template .site-header.is-cats-collapsed .hdr-cats-bar {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-8px) scaleY(0.82);
        opacity: 0;
        filter: blur(5px);
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        border-top-color: transparent;
        animation: none;
    }
}

/* --- Mega Menu (sol ana menü + sağ görselli panel) --- */

.pg-template .hdr-mega {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    width: min(var(--container-max), calc(100vw - 48px));
    max-width: var(--container-max);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 32px rgba(42, 38, 35, 0.08);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
    z-index: 99;
    overflow: hidden;
}

.pg-template .hdr-mega::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.pg-template .hdr-cats-bar.is-mega-open .hdr-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.pg-template .hdr-cats-bar.is-mega-open .hdr-cats-bar__all {
    color: var(--color-brand);
}

.pg-template .site-header { overflow: visible; }

.pg-template .hdr-mega__layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 300px;
    max-height: min(520px, calc(100vh - 168px));
}

.pg-template .hdr-mega__nav {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    scrollbar-width: thin;
}

.pg-template .hdr-mega__nav-item {
    width: 100%;
    margin: 0;
    padding: 14px 20px;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.pg-template .hdr-mega__nav-item:hover,
.pg-template .hdr-mega__nav-item:focus-visible {
    color: var(--color-brand);
    background: var(--color-surface);
    outline: none;
}

.pg-template .hdr-mega__nav-item.is-active {
    color: var(--color-brand);
    font-weight: 600;
    background: var(--color-surface);
    border-left-color: var(--color-brand);
}

.pg-template .hdr-mega__content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    background: var(--color-surface);
}

.pg-template .hdr-mega__panel {
    display: none;
    height: 100%;
    min-height: 0;
}

.pg-template .hdr-mega__panel.is-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pg-template .hdr-mega__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px 14px;
    flex-shrink: 0;
}

.pg-template .hdr-mega__panel-title {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-text);
}

.pg-template .hdr-mega__grid {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 28px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 18px 16px;
    align-content: start;
    scrollbar-width: thin;
}

.pg-template .hdr-mega__tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.pg-template .hdr-mega__tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pg-template .hdr-mega__tile:hover .hdr-mega__tile-img {
    border-color: var(--color-brand-hover);
    box-shadow: 0 8px 20px rgba(184, 147, 90, 0.1);
}

.pg-template .hdr-mega__tile-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.pg-template .hdr-mega__tile-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: var(--color-text);
    word-break: break-word;
}

.pg-template .hdr-mega__tile-img--all {
    position: relative;
    background: var(--color-surface-2);
    color: var(--color-muted);
}

.pg-template .hdr-mega__tile-img--all > svg:first-child {
    width: 34px;
    height: 34px;
}

.pg-template .hdr-mega__tile-all-arrow {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-brand);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.pg-template .hdr-mega__tile-all-arrow svg {
    width: 12px;
    height: 12px;
}

.pg-template .hdr-mega__tile--all .hdr-mega__tile-name {
    color: var(--color-text);
}

@media (max-width: 1100px) {
    .pg-template .hdr-mega__layout {
        min-height: 280px;
    }

    .pg-template .hdr-mega__nav {
        flex-basis: 188px;
    }

    .pg-template .hdr-mega__grid {
        grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
        padding: 0 20px 20px;
        gap: 14px 12px;
    }

    .pg-template .hdr-mega__panel-head {
        padding: 16px 20px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pg-template .hdr-cats-bar.is-mega-open .hdr-mega {
        transition: none;
    }
}

/* --- Actions --- */
.pg-template .hdr-actions {
    --hdr-action-size: 40px;
    --hdr-action-icon: 20px;
    --hdr-action-gap: 8px;
    --hdr-action-radius: 10px;
    display: flex;
    align-items: center;
    gap: var(--hdr-action-gap);
    margin-left: auto;
    flex-shrink: 0;
}
.pg-template .hdr-actions__tools {
    display: flex;
    align-items: center;
    gap: var(--hdr-action-gap);
    flex-shrink: 0;
}
.pg-template .hdr-act-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    width: var(--hdr-action-size);
    min-width: var(--hdr-action-size);
    height: var(--hdr-action-size);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hdr-action-radius);
    transition: background .18s, color .18s, transform .18s, opacity .18s;
    position: relative;
    text-decoration: none;
    flex: 0 0 var(--hdr-action-size);
    box-sizing: border-box;
}
.pg-template .hdr-act-btn svg,
.pg-template .hdr-act-btn__icon svg {
    width: var(--hdr-action-icon);
    height: var(--hdr-action-icon);
    display: block;
    stroke: currentColor;
    flex-shrink: 0;
}
.pg-template .hdr-act-btn:hover {
    background: rgba(184,147,90,.08);
    color: var(--color-brand);
    transform: translateY(-1px);
}
.pg-template .hdr-act-btn__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--hdr-action-icon);
    height: var(--hdr-action-icon);
    flex-shrink: 0;
}
.pg-template .hdr-act-btn--icon-only {
    width: var(--hdr-action-size);
    min-width: var(--hdr-action-size);
    height: var(--hdr-action-size);
}
.pg-template .hdr-act-btn__text {
    display: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.pg-template .hdr-act-btn__badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border: 2px solid var(--color-surface);
}
.pg-template .hdr-act-btn__badge.is-hidden {
    display: none;
}
/* Hesap ikonundaki bildirim rozeti: tetikleyicinin kendi zemini olduğu için
   diğer rozetlerden biraz içeride durur, aksi halde kenardan taşıyor. */
.pg-template .hdr-user-trigger .hdr-act-btn__badge {
    top: -4px;
    right: -4px;
}
.pg-template .hdr-act-btn.is-disabled {
    opacity: .42;
    cursor: not-allowed;
}
.pg-template .hdr-act-btn.is-disabled:hover {
    background: transparent;
    color: var(--color-text);
    transform: none;
}

.pg-template .hdr-user-menu {
    position: relative;
    flex: 0 0 auto;
    z-index: 3;
}

.pg-template .hdr-user-trigger {
    position: relative;
    width: var(--hdr-action-size);
    min-width: var(--hdr-action-size);
    height: var(--hdr-action-size);
    padding: 0;
    border-radius: var(--hdr-action-radius);
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: var(--color-text);
    cursor: pointer;
    flex: 0 0 var(--hdr-action-size);
    box-sizing: border-box;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pg-template .hdr-user-trigger svg {
    width: var(--hdr-action-icon);
    height: var(--hdr-action-icon);
    display: block;
    flex-shrink: 0;
}
.pg-template .hdr-user-trigger:hover {
    background: rgba(184,147,90,.08);
    color: var(--color-brand);
    transform: translateY(-1px);
}
.pg-template .hdr-user-trigger.is-open {
    background: rgba(184,147,90,.12);
    color: var(--color-brand);
}
.pg-template .hdr-user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 196px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 32px rgba(42,38,35,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 200;
}
.pg-template .hdr-user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pg-template .hdr-user-dropdown__name {
    padding: 8px 12px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.4;
}
.pg-template .hdr-user-dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background .15s ease, color .15s ease;
}
.pg-template .hdr-user-dropdown__link:hover {
    background: var(--color-surface-2);
    color: var(--color-brand);
}
.pg-template .hdr-user-dropdown .hdr-user-dropdown__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}
.pg-template .hdr-user-dropdown__divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--color-border);
}
.pg-template .hdr-user-dropdown__link--danger {
    color: var(--color-danger);
}
.pg-template .hdr-user-dropdown__link--danger:hover {
    background: var(--color-danger-subtle);
    color: var(--color-danger-hover);
}
@media (min-width: 768px) {
    .pg-template .hdr-user-trigger__meta { display: flex; }
}

.pg-template .hdr-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    height: var(--hdr-action-size);
    min-height: var(--hdr-action-size);
    border-radius: var(--hdr-action-radius);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    background: var(--color-brand-bg);
    color: var(--color-text-on-brand);
    border: none;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
    margin-left: 0;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(184, 147, 90, .22);
}
.pg-template .hdr-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.pg-template .hdr-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(184, 147, 90, .32);
    color: var(--color-text-on-brand);
}

/* --- Hamburger --- */
.pg-template .hdr-burger {
    display: flex;
    background: transparent;
    border: none;
    color: var(--color-text);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
}
.pg-template .hdr-burger:hover { background: rgba(184,147,90,.08); }
@media (min-width: 1024px) { .pg-template .hdr-burger { display: none; } }

/* --- Arama paneli (header dışına overlay) --- */
.pg-template .hdr-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    box-sizing: border-box;
    max-height: min(68vh, 480px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.pg-template .hdr-search.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pg-template .hdr-search__section--popular,
.pg-template .hdr-search__section--filters {
    transition: opacity .18s ease;
}

.pg-template .hdr-search.is-typing .hdr-search__section--popular,
.pg-template .hdr-search.is-typing .hdr-search__section--filters {
    opacity: 0.55;
}

/* Two-column body */
.pg-template .hdr-search__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.pg-template .hdr-search__pane {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-surface);
    min-width: 0;
    overflow: hidden;
}
.pg-template .hdr-search__pane--left {
    border-right: 1px solid var(--color-border);
}
.pg-template .hdr-search__pane--right {
    background: var(--color-surface);
}

.pg-template .hdr-search__section {
    display: flex;
    flex-direction: column;
}

/* Section label */
.pg-template .hdr-search__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.pg-template .hdr-search__section-head h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-muted);
}

/* Chips */
.pg-template .hdr-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pg-template .hdr-search__chip {
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-muted);
    height: 28px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
}
.pg-template .hdr-search__chip:hover {
    border-color: rgba(184, 147, 90, 0.45);
    color: var(--color-brand-text);
    background: var(--color-surface-2);
}

/* Arama geçmişi */
.pg-template .hdr-search__history-clear {
    border: none;
    background: none;
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s ease;
}

.pg-template .hdr-search__history-clear:hover {
    color: var(--color-brand);
}

.pg-template .hdr-search__history {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-template .hdr-search__history-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    border-radius: 8px;
    transition: background .14s ease;
}

.pg-template .hdr-search__history-item:hover {
    background: var(--color-surface-2);
}

.pg-template .hdr-search__history-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px 8px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.pg-template .hdr-search__history-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
}

.pg-template .hdr-search__history-icon svg {
    width: 14px;
    height: 14px;
}

.pg-template .hdr-search__history-label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-template .hdr-search__history-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.pg-template .hdr-search__history-remove:hover {
    background: var(--color-surface-2);
    color: var(--color-muted);
}

/* Filtreler (daraltılabilir) */
.pg-template .hdr-search__filters-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface-2);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color .15s ease, background .15s ease;
}

.pg-template .hdr-search__filters-toggle:hover {
    border-color: var(--color-border);
    background: var(--color-surface-2);
}

.pg-template .hdr-search__filters-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-muted);
}

.pg-template .hdr-search__filters-toggle-hint {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-template .hdr-search__filters-toggle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-muted);
    transition: transform .2s ease;
}

.pg-template .hdr-search__filters-toggle[aria-expanded="true"] .hdr-search__filters-toggle-icon {
    transform: rotate(180deg);
}

.pg-template .hdr-search__filters-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.pg-template .hdr-search__filters-panel[hidden] {
    display: none;
}

/* Advanced search */
.pg-template .hdr-search__advanced {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pg-template .hdr-search__advanced-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.pg-template .hdr-search__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pg-template .hdr-search__field span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-muted);
}
.pg-template .hdr-search__field select {
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    padding: 0 10px;
    font-size: 12.5px;
    color: var(--color-text);
    outline: none;
    cursor: pointer;
    min-width: 0;
    font-family: inherit;
}
.pg-template .hdr-search__field select:focus {
    border-color: rgba(184, 147, 90, 0.5);
}
.pg-template .hdr-search__advanced-btn {
    align-self: flex-start;
    height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
}
.pg-template .hdr-search__advanced-btn:hover {
    filter: brightness(1.06);
}

/* Boş durum — sağ panel */
.pg-template .hdr-search__idle {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-template .hdr-search__idle[hidden],
.pg-template .hdr-search__suggestions[hidden] {
    display: none !important;
}

.pg-template .hdr-search__idle-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.pg-template .hdr-search__idle-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--color-muted);
}

.pg-template .hdr-search__quick-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.pg-template .hdr-search__quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 500;
    transition: background .14s ease, color .14s ease;
}

.pg-template .hdr-search__quick-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-brand);
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity .14s ease, transform .14s ease;
}

.pg-template .hdr-search__quick-link:hover {
    background: var(--color-surface-2);
    color: var(--color-brand);
}

.pg-template .hdr-search__quick-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Suggestions */
.pg-template .hdr-search__suggestions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pg-template .hdr-search__suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: transparent;
    text-decoration: none;
    transition: background .14s;
}
.pg-template .hdr-search__suggestion:hover {
    background: var(--color-surface-2);
}
.pg-template .hdr-search__suggestion-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: var(--color-surface-2);
    color: var(--color-muted);
}
.pg-template .hdr-search__suggestion-badge--product {
    background: var(--color-surface-2);
    color: var(--color-brand);
}
.pg-template .hdr-search__suggestion-badge--category {
    background: var(--color-info-subtle);
    color: var(--color-info);
}
.pg-template .hdr-search__suggestion-copy {
    min-width: 0;
    flex: 1;
}
.pg-template .hdr-search__suggestion-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pg-template .hdr-search__suggestion-meta {
    display: block;
    font-size: 11px;
    color: var(--color-muted);
    margin-top: 1px;
}
.pg-template .hdr-search__suggestion-arrow {
    color: var(--color-brand);
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity .14s, transform .14s;
}
.pg-template .hdr-search__suggestion:hover .hdr-search__suggestion-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Empty / loading */
.pg-template .hdr-search__empty,
.pg-template .hdr-search__loading {
    padding: 24px 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Mobil: arama ikonu ile header altında açılır panel */
@media (max-width: 1023px) {
    .pg-template .hdr-search-wrap {
        position: fixed;
        top: var(--hdr-search-top, 120px);
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: none !important;
        max-height: min(520px, calc(100dvh - var(--hdr-search-top, 120px) - 72px));
        margin: 0;
        padding: 0;
        z-index: 500;
        display: none;
        flex-direction: column;
        background: var(--color-surface);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition: opacity .2s ease, visibility .2s ease;
        overflow: hidden;
        box-sizing: border-box;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    }

    .pg-template .hdr-search-wrap.is-open {
        max-width: none !important;
    }

    .pg-template .hdr-search-wrap.is-mobile-open {
        display: flex !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pg-template .hdr-search-mobile-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background: var(--color-surface);
        border-radius: 0;
    }

    .pg-template .hdr-search-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        border: none;
        padding: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--color-muted);
        cursor: pointer;
        transition: background .16s ease, color .16s ease;
    }

    .pg-template .hdr-search-mobile-close svg {
        width: 20px;
        height: 20px;
    }

    .pg-template .hdr-search-mobile-close:hover {
        background: rgba(184, 147, 90, 0.1);
        color: var(--color-brand);
    }

    .pg-template .hdr-search-wrap.is-mobile-open .hdr-search-inline {
        display: flex;
        flex: 1;
        min-width: 0;
        width: 100%;
        border-radius: 10px;
        box-shadow: none;
    }

    .pg-template .hdr-search {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        flex: 1 1 auto;
        min-height: 0;
        transform: none;
        border: none;
        border-radius: 0 0 16px 16px;
        max-height: none;
        box-shadow: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pg-template .hdr-search.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .pg-template .hdr-search__body {
        grid-template-columns: 1fr;
    }

    .pg-template .hdr-search__pane {
        padding: 16px 14px;
        gap: 16px;
    }

    .pg-template .hdr-search__pane--left {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .pg-template .hdr-search__pane--right {
        background: var(--color-surface);
    }

    .pg-template .hdr-search__advanced-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .pg-template .hdr-search__advanced-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Drawer --- */
.pg-template .hdr-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    pointer-events: none;
}
.pg-template .hdr-drawer.is-open { pointer-events: auto; }
.pg-template .hdr-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42,38,35,.55);
    opacity: 0;
    transition: opacity .25s;
}
.pg-template .hdr-drawer.is-open .hdr-drawer__backdrop { opacity: 1; }
.pg-template .hdr-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 18px rgba(0,0,0,.06);
}
.pg-template .hdr-drawer.is-open .hdr-drawer__panel { transform: translateX(0); }
.pg-template .hdr-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.pg-template .hdr-drawer__close {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--color-muted);
    border-radius: 8px;
}
.pg-template .hdr-drawer__close:hover { background: var(--color-surface-2); color: var(--color-text); }
.pg-template .hdr-drawer__body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pg-template .hdr-drawer__nav {
    flex-shrink: 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

/* Mobil kategori paneli (hamburger — sol menü + sağ ızgara) */
.pg-template .hdr-mcat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface);
}

.pg-template .hdr-mcat__layout {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
    overflow: hidden;
}

.pg-template .hdr-mcat__sidebar {
    flex: 0 0 clamp(108px, 32vw, 132px);
    background: var(--color-surface-2);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.pg-template .hdr-mcat__tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.pg-template .hdr-mcat__tabs::-webkit-scrollbar {
    display: none;
}

.pg-template .hdr-mcat__tab {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 14px 12px 14px 14px;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.pg-template .hdr-mcat__tab.is-active {
    color: var(--color-brand);
    font-weight: 600;
    background: var(--color-surface);
    border-left-color: var(--color-brand);
}

.pg-template .hdr-mcat__content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface);
}

.pg-template .hdr-mcat__panel {
    display: none;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.pg-template .hdr-mcat__panel.is-active {
    display: block;
}

.pg-template .hdr-mcat__grid {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
    align-content: start;
}

.pg-template .hdr-mcat__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
}

.pg-template .hdr-mcat__tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-surface-2);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.pg-template .hdr-mcat__tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.pg-template .hdr-mcat__tile-img--all {
    position: relative;
    background: var(--color-surface-2);
    color: var(--color-muted);
}

.pg-template .hdr-mcat__tile-img--all svg {
    width: 34px;
    height: 34px;
}

.pg-template .hdr-mcat__tile-all-arrow {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-brand);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.pg-template .hdr-mcat__tile-all-arrow svg {
    width: 12px;
    height: 12px;
}

.pg-template .hdr-mcat__tile-name {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: var(--color-text);
    word-break: break-word;
}

@media (min-width: 1024px) {
    .pg-template .hdr-mcat {
        display: none;
    }
}

/* Kategori görsel grid — 2 sütun (eski) */
.pg-template .hdr-drawer__cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}
.pg-template .hdr-drawer__cat {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: var(--color-surface-2);
    transition: transform .2s, box-shadow .2s;
}
.pg-template .hdr-drawer__cat:active { transform: scale(.97); }
.pg-template .hdr-drawer__cat-img {
    position: absolute;
    inset: 0;
}
.pg-template .hdr-drawer__cat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}
.pg-template .hdr-drawer__cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.58) 0%, transparent 55%);
}
.pg-template .hdr-drawer__cat-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 10px 9px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-on-brand);
    line-height: 1.2;
}

/* Alt kategoriler bölümü — accordion tarzı gizli, JS ile açılır (opsiyonel, şimdi hep açık) */
.pg-template .hdr-drawer__subs-section {
    padding: 0 20px;
    border-bottom: 1px solid var(--color-border);
}
.pg-template .hdr-drawer__subs-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-brand);
    padding: 14px 0 8px;
}
.pg-template .hdr-drawer__sub-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 12px;
}
.pg-template .hdr-drawer__sub-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 4px;
    border-bottom: 1px solid var(--color-border);
    transition: color .15s;
}
.pg-template .hdr-drawer__sub-link:last-child { border-bottom: none; }
.pg-template .hdr-drawer__sub-link::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-brand-subtle);
    flex-shrink: 0;
}
.pg-template .hdr-drawer__sub-link:hover { color: var(--color-brand); }

/* Accordion butonu */
.pg-template .hdr-drawer__acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    text-align: left;
    transition: color .18s;
}
.pg-template .hdr-drawer__acc-btn:hover { color: var(--color-brand); }
.pg-template .hdr-drawer__acc-btn[aria-expanded="true"] { color: var(--color-brand); }
.pg-template .hdr-drawer__acc-ic { transition: transform .25s; flex-shrink: 0; }
.pg-template .hdr-drawer__acc-btn[aria-expanded="true"] .hdr-drawer__acc-ic { transform: rotate(180deg); }

/* Accordion içerik */
.pg-template .hdr-drawer__acc-body {
    display: none;
    border-bottom: 1px solid var(--color-border);
}
.pg-template .hdr-drawer__acc-body.is-open { display: block; }

/* Alt menü linkleri */
.pg-template .hdr-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--color-surface);
    transition: color .18s, background .18s;
}
.pg-template .hdr-drawer__link:hover {
    color: var(--color-brand);
    background: var(--color-surface-2);
}
.pg-template .hdr-drawer__link-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pg-template .hdr-drawer__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-muted);
}
.pg-template .hdr-drawer__link-icon svg {
    width: 20px;
    height: 20px;
}
.pg-template .hdr-drawer__link-label {
    line-height: 1.35;
}
.pg-template .hdr-drawer__link-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-muted);
}
.pg-template .hdr-drawer__foot {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
}
.pg-template .hdr-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: var(--color-brand);
    color: var(--color-text-on-brand);
    transition: background .2s;
}
.pg-template .hdr-drawer__cta:hover { background: var(--color-brand-hover); }

@media (max-width: 480px) {
    .pg-template .hdr-inner {
        padding: 0 16px;
        gap: 8px;
        height: 62px;
    }
    .pg-template .hdr-cats-bar__inner {
        padding: 0 16px;
    }
    .pg-template .hdr-cats-bar__all {
        font-size: 12px;
        padding-right: 12px;
    }
    .pg-template .hdr-cats-bar__link {
        font-size: 12px;
        padding: 10px 12px;
    }
    .pg-template .hdr-brand {
        gap: 8px;
        min-width: 0;
    }
    .pg-template .hdr-brand img {
        height: 28px;
        max-height: 28px;
    }
    .pg-template .hdr-brand__text {
        font-size: 14px;
        line-height: 1.1;
    }
    .pg-template .hdr-actions {
        --hdr-action-size: 36px;
        --hdr-action-icon: 18px;
        --hdr-action-gap: 6px;
        --hdr-action-radius: 10px;
    }
    .pg-template .hdr-cta {
        padding: 0;
        width: var(--hdr-action-size);
        min-width: var(--hdr-action-size);
        gap: 0;
    }
    .pg-template .hdr-cta span {
        display: none;
    }
    .pg-template .hdr-cta svg {
        width: 18px;
        height: 18px;
    }
}

/* Telefon yerleşimi: duyuru + tek kompakt ana satır. Kategoriler çekmecede. */
@media (max-width: 520px) {
    .pg-template .hdr-announce--hide-mobile {
        display: none !important;
    }

    .pg-template .hdr-announce {
        min-height: 52px;
        padding: 7px 42px 7px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        line-height: 1.35;
        letter-spacing: .025em;
    }

    .pg-template .hdr-announce__content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2px 6px;
        min-width: 0;
    }

    .pg-template .hdr-announce__icon svg {
        width: 13px;
        height: 13px;
    }

    .pg-template .hdr-announce__content > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        line-height: 1.35;
    }

    .pg-template .hdr-announce__content > a::before {
        display: none;
    }

    .pg-template .hdr-announce__close {
        right: 10px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pg-template .hdr-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 58px;
        width: 100%;
        height: 58px;
        padding: 0 10px;
        gap: 4px;
        overflow: hidden;
    }

    .pg-template .hdr-start {
        position: static;
        width: auto;
        height: 58px;
        padding: 0;
        gap: 4px;
        justify-content: flex-start;
        overflow: hidden;
    }

    .pg-template .hdr-burger {
        position: static;
        padding: 7px;
        transform: none;
    }

    .pg-template .hdr-brand {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
        gap: 6px;
        justify-content: flex-start;
    }

    .pg-template .hdr-brand img {
        height: 27px;
        max-height: 27px;
    }

    .pg-template .hdr-brand__text {
        display: block;
        max-width: 104px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
    }

    .pg-template .hdr-actions {
        --hdr-action-size: 34px;
        --hdr-action-icon: 18px;
        --hdr-action-gap: 3px;
        justify-self: end;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        gap: 3px;
        justify-content: flex-end;
        border: 0;
        background: transparent;
    }

    .pg-template .hdr-actions__tools {
        flex: 0 0 auto;
        gap: 3px;
    }

    .pg-template .hdr-cta {
        display: none !important;
    }
}

@media (max-width: 350px) {
    .pg-template .hdr-brand__text {
        display: none;
    }

    .pg-template .hdr-brand {
        gap: 0;
    }
}

/* Tablet: randevu aksiyonu ikon kırıntısına dönüşmez; kısa ve okunur kalır. */
@media (min-width: 769px) and (max-width: 1023px) {
    .pg-template .hdr-inner {
        padding-inline: 16px;
    }

    .pg-template .hdr-cta {
        display: inline-flex;
        width: auto;
        min-width: 112px;
        padding: 0 14px;
        gap: 7px;
    }

    .pg-template .hdr-cta span {
        display: inline;
    }

    .pg-template .hdr-cta svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 521px) and (max-width: 768px) {
    .pg-template .hdr-cta {
        display: none;
    }
}
