/* DERMOMORE ortak stil — mobile-first, framework yok (Docs/01 §6, Docs/12). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary); }
h1, h2, h3 { line-height: 1.25; }
.layout-store h1, .layout-store h2, .layout-store h3, .layout-store h4 { font-family: var(--font-heading, var(--font)); }

/* Vitrin tema önizleme çubuğu (Docs/19 §2.5) */
.dmr-theme-preview-bar { background: #0f172a; color: #f8fafc; font-size: .8125rem; border-bottom: 2px solid var(--color-accent); position: relative; z-index: 95; }
.dmr-theme-preview-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .45rem; }
.dmr-theme-preview-bar__badge { display: inline-block; padding: .15rem .5rem; border-radius: calc(var(--radius-sm) / 2); background: var(--color-accent); color: #111827; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.dmr-theme-preview-bar__text { flex: 1; min-width: 200px; }
.dmr-theme-preview-bar__actions { display: inline-flex; align-items: center; gap: .6rem; }
.dmr-theme-preview-bar__link, .dmr-theme-preview-bar__close { color: #f8fafc; text-decoration: none; font-weight: 600; padding: .2rem .55rem; border-radius: calc(var(--radius-sm) / 2); border: 1px solid rgb(255 255 255 / .24); }
.dmr-theme-preview-bar__close { background: rgb(255 255 255 / .12); }
.dmr-theme-preview-bar__link:hover, .dmr-theme-preview-bar__close:hover { background: rgb(255 255 255 / .22); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: var(--color-primary-contrast); padding: .5rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
.text-muted { color: var(--color-muted); }
[hidden] { display: none !important; }

/* Düğmeler / form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: var(--radius); border: 1px solid transparent; font: inherit; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-secondary { background: var(--color-surface); color: var(--color-primary); border-color: var(--color-primary); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
.btn-icon, .link-button { background: none; border: 0; padding: .25rem; cursor: pointer; font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; }
input[type="search"] { -webkit-appearance: none; appearance: none; background-color: var(--color-surface); }
.form-stack { display: grid; gap: .5rem; max-width: 420px; }
.checkbox { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; }
.badge-count { display: inline-block; min-width: 1.25rem; padding: 0 .3rem; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-contrast, #1b2428); font-size: .75rem; text-align: center; }

/* Basit ikonlar (görsel set gelene kadar) */
.icon-user::before,
.icon-cart::before,
.icon-heart::before,
.icon-home::before,
.icon-bars::before {
    content: "";
    display: inline-block;
    width: 1.15rem;
    height: 1.15rem;
    vertical-align: -0.18em;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.icon-user::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.icon-cart::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}
.icon-heart::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
[data-favorite-toggle].is-favorite .icon-heart::before,
[data-favorite-toggle][aria-pressed="true"] .icon-heart::before {
    color: var(--color-danger);
    background-color: var(--color-danger);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
.icon-home::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E");
}
.icon-bars::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

/* Duyuru + üst şerit */
/* Üst şerit (portal #960): tek bileşen — sol destek hattı · orta kayan duyuru · sağ bağlantılar + TR / TL. Renkler Tema > Duyuru Şeridi.
   Telefon: yalnız duyuru. 768–1199 px: duyuru üstte, destek + bağlantılar altta. ≥ 1200 px: tek satır, duyuru ortanın biraz solunda. */
.top-bar { background: var(--announcement-bg, var(--color-accent)); color: var(--announcement-color, #fff); font-size: .875rem; }
.top-bar--no-announcement { display: none; }
.top-bar__inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ann"; align-items: center; }
.top-bar__support, .top-bar__links, .top-bar__spacer { display: none; }
.top-bar a { color: inherit; text-decoration: none; }
.top-bar a:hover, .top-bar a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.top-bar__support { grid-area: support; align-items: center; min-width: 0; }
.top-bar__phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.top-bar__phone::before {
    content: ""; flex: 0 0 auto; width: 20px; height: 20px; background-color: currentColor;
    -webkit-mask: var(--support-icon) center / contain no-repeat; mask: var(--support-icon) center / contain no-repeat;
    --support-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13.5' width='4' height='6.5' rx='1.5'/%3E%3Crect x='17' y='13.5' width='4' height='6.5' rx='1.5'/%3E%3C/svg%3E");
}
.top-bar__links { grid-area: links; justify-content: flex-end; align-items: center; flex-wrap: nowrap; min-width: 0; }
.top-bar__links > * { position: relative; padding-inline: .8rem; white-space: nowrap; }
.top-bar__links > *:last-child { padding-right: 0; }
.top-bar__links > * + *::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; transform: translateY(-50%);
    background: currentColor; opacity: .6;
}
.announcement-slider { grid-area: ann; position: relative; display: grid; grid-template-areas: "slide"; justify-items: center; align-items: center; height: 36px; overflow: hidden; }
.announcement-slide {
    grid-area: slide; position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .01em; text-align: center;
    color: inherit; text-decoration: none; white-space: nowrap;
    opacity: 0; transform: translateY(100%); pointer-events: none;
    transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .6s;
}
.announcement-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.announcement-slide.is-leaving { opacity: 0; transform: translateY(-100%); }
.announcement-slide::before {
    content: ""; flex: 0 0 auto; width: 22px; height: 22px; background-color: currentColor;
    -webkit-mask: var(--ann-icon) center / contain no-repeat; mask: var(--ann-icon) center / contain no-repeat;
}
.announcement-slide[data-icon="kargo"]    { --ann-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 15.5V6.5h11v9M13.5 9.5h4l3 3.5v2.5'/%3E%3Cpath d='M2.5 15.5h2.2M8.3 15.5h6.9M18.8 15.5h1.7'/%3E%3Ccircle cx='6.5' cy='16.3' r='1.8'/%3E%3Ccircle cx='17' cy='16.3' r='1.8'/%3E%3C/svg%3E"); }
.announcement-slide[data-icon="orijinal"] { --ann-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8.3 7.5 9.5 4.3-1.2 7.5-4.9 7.5-9.5V6L12 3Z'/%3E%3Cpath d='m8.8 12.2 2.2 2.2 4.3-4.4'/%3E%3C/svg%3E"); }
.announcement-slide[data-icon="iade"]     { --ann-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); }
@media (max-width: 400px) {
    .announcement-slide { font-size: 13px; gap: 6px; }
    .announcement-slide::before { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .announcement-slide { transition: none; } }
/* Cihaza özel duyuru slaytı (banner "Masaüstü" / "Mobil"); hangi slaytın döneceğini site.js de aynı kırılımla seçer. */
@media (max-width: 767px) { .announcement-slide[data-device="desktop"] { display: none; } }
@media (min-width: 768px) {
    .announcement-slide[data-device="mobile"] { display: none; }
    .top-bar--no-announcement { display: block; }
    .top-bar__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ann ann" "support links"; padding-bottom: .35rem; }
    .top-bar__support, .top-bar__links { display: flex; }
    .top-bar--no-announcement .top-bar__inner { grid-template-areas: "support links"; padding-block: .35rem; }
}
@media (min-width: 1200px) {
    .top-bar__inner, .top-bar--no-announcement .top-bar__inner {
        /* Sütunlar içerikten dar olamaz (taşma/üst üste binme yok); artan genişlik 1 : 1,45 dağılır → duyuru ortanın biraz solunda. */
        grid-template-columns: minmax(max-content, 1fr) max-content minmax(max-content, 1.45fr); grid-template-areas: "support ann links";
        column-gap: 1.5rem; padding-block: 0; min-height: 44px;
    }
    .top-bar__spacer { display: block; grid-area: ann; }
    .announcement-slider { height: 44px; min-width: max-content; }
    .announcement-slide { font-size: 16px; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
    .top-bar__inner { font-size: .8125rem; column-gap: 1rem; }
    .top-bar__links > * { padding-inline: .55rem; }
    .announcement-slide { font-size: 15px; }
}

/* Header */
.site-header { background: var(--header-bg, var(--color-surface)); color: var(--header-color, var(--color-text)); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo actions" "search search search"; align-items: center; gap: .5rem 1rem; padding-block: .5rem; }
/* Dokunma hedefi en az 44×44 px (portal #841). */
.site-header__hamburger { grid-area: burger; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: inherit; }
.site-header__logo { grid-area: logo; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--header-color, var(--color-text)); }
/* Logo ölçüsü Site.LogoWidth / Site.LogoWidthMobile (header --logo-w / --logo-w-m yazar); yuvarlakta çap, yazı logosunda genişlik.
   Logo dosyası beyaz boşluğu kırpılmış haliyle doğrudan gösterilir; negatif margin ile kırpma yok (ticket #125 madde 57). */
.site-header__logo { --logo-size: var(--logo-w-m, 136px); }
.site-header__logo img { height: var(--logo-size); width: var(--logo-size); border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(43, 33, 30, .14); border: 1.5px solid var(--color-accent, #c59341); }
.site-header__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.site-header__brand-text strong { font-family: var(--font-heading, Georgia, serif); font-size: 1.15rem; font-weight: 700; color: var(--color-primary, #7a1f2b); letter-spacing: -.01em; }
.site-header__brand-text small { font-size: .75rem; color: var(--color-muted, #6e5d54); font-weight: 600; letter-spacing: .02em; }
/* Site.LogoStyle = wide: yazı logosu kırpılmadan, oranı korunarak; dar ekranda hamburger/ikonlara yer bırakır. */
.site-header__logo--wide { min-width: 0; }
.site-header__logo--wide img { height: auto; max-width: 100%; border-radius: 0; object-fit: contain; box-shadow: none; border: 0; }
.site-search { grid-area: search; position: relative; display: flex; gap: .5rem; }
.site-search__panel { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: .5rem; z-index: 60; max-height: var(--search-panel-max, calc(100dvh - 12rem)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.site-search__panel .tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--color-border); }
.site-search__panel .tabs button { background: none; border: 0; padding: .4rem .6rem; cursor: pointer; color: inherit; font: inherit; }
.site-search__panel .tabs button[aria-selected="true"] { border-bottom: 2px solid var(--color-primary); }
.site-header__actions { grid-area: actions; display: flex; gap: .5rem; align-items: center; }
/* Vitrin Metinleri > Header.ActionOrder: _Header.cshtml --ha-* değişkenlerini yazar; yoksa DOM sırası. */
.site-header__actions > .header-action--favorites { order: var(--ha-favorites, 0); }
.site-header__actions > .header-action--account { order: var(--ha-account, 1); }
.site-header__actions > .header-action--cart { order: var(--ha-cart, 2); }
.header-action { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: inherit; position: relative; }
.header-action__label { display: none; }
a.header-action, .dropdown__toggle {
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: var(--radius-pill);
    padding: .42rem .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
/* Header düğmeleri her genişlikte en az 44 px yüksek (portal #841; masaüstünde 39 px idi). */
.site-header__actions a.header-action, .site-header__actions .dropdown__toggle { min-height: 44px; }
/* Telefonda header düğmeleri en az 44×44 px dokunma hedefi (portal #841); yazı logosunda logoya yer açmak için sütun aralığı daralır. */
@media (max-width: 767px) {
    .site-header__actions a.header-action, .site-header__actions .dropdown__toggle { min-width: 44px; min-height: 44px; justify-content: center; }
    .site-header__inner:has(.site-header__logo--wide) { column-gap: .5rem; }
    /* Sepet sayacı düğmeyi genişletip logoyu sıkıştırmasın: telefonda köşe rozeti. */
    .site-header__actions .mini-cart__trigger { position: relative; }
    .site-header__actions .mini-cart__trigger .badge-count { position: absolute; top: -.3rem; right: -.3rem; min-width: 1.15rem; padding: 0 .25rem; font-size: .68rem; line-height: 1.15rem; }
}
/* Site.Header.CompactOnScroll (portal #841): telefonda aşağı kaydırınca header yukarı kayar, yukarı kaydırınca geri gelir.
   Yalnız transform: düzen kaymaz (CLS yok); hareket azaltma tercihinde animasyonsuz. Durumu site.js initHeaderCompact yönetir. */
@media (max-width: 767px) {
    .site-header[data-compact-on-scroll="true"] { transition: transform .22s ease; }
    .site-header[data-compact-on-scroll="true"].is-scrolled-away { transform: translateY(calc(-100% - 2px)); }
}
@media (prefers-reduced-motion: reduce) {
    .site-header[data-compact-on-scroll="true"] { transition: none; }
}
a.header-action:hover, .dropdown__toggle:hover, .dropdown__toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--color-primary) 11%, transparent);
    border-color: color-mix(in srgb, var(--color-primary) 26%, transparent);
    color: var(--color-primary);
}
.dropdown__menu {
    position: absolute; right: 0; top: calc(100% + .6rem); min-width: 220px;
    list-style: none; margin: 0; padding: .5rem;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) - 2px); box-shadow: 0 18px 40px rgb(15 23 42 / .14); z-index: 65;
}
.dropdown__menu:not(.mini-cart):not(.account-menu) a, .dropdown__menu:not(.mini-cart):not(.account-menu) .link-button {
    display: block; width: 100%; text-align: left; padding: .48rem .65rem;
    border-radius: var(--radius-sm); text-decoration: none; color: inherit; font-size: .875rem; font-weight: 500;
    transition: background .15s ease, color .15s ease;
}
.dropdown__menu:not(.mini-cart):not(.account-menu) a:hover, .dropdown__menu:not(.mini-cart):not(.account-menu) .link-button:hover {
    background: color-mix(in srgb, var(--color-primary) 7%, transparent); color: var(--color-primary);
}
.dropdown__header {
    padding: .45rem .65rem .55rem; margin-bottom: .25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .8125rem; font-weight: 700; color: var(--color-primary);
}

/* Header Hesabım Menüsü (açılır kart) */
.account-menu {
    width: min(340px, calc(100vw - 1.5rem));
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
    box-shadow: 0 22px 48px rgb(15 23 42 / .18);
}
.account-menu__head {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)), var(--color-surface));
    border-bottom: 1px solid var(--color-border);
}
.account-menu__title-group { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.account-menu__head-icon { width: 1.2rem; height: 1.2rem; color: var(--color-primary); flex: none; }
.account-menu__title { font-size: .95rem; font-weight: 750; color: var(--color-primary); }
.account-menu__pill {
    display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary); font-size: .72rem; font-weight: 700;
}
.account-menu__close {
    width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0;
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-muted); cursor: pointer;
    display: inline-grid; place-items: center; flex: none;
    transition: background .15s ease, color .15s ease;
}
.account-menu__close svg { width: 1rem; height: 1rem; }
.account-menu__close:hover { background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-text); }

/* Üye profil özet kartı */
.account-menu__profile {
    display: grid;
    grid-template-columns: 2.65rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.1rem;
    background: #f8fbfa;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    transition: background .15s ease;
}
.account-menu__profile:hover { background: color-mix(in srgb, var(--color-primary) 6%, #f8fbfa); }
.account-menu__avatar {
    width: 2.65rem; height: 2.65rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 75%, #0f172a));
    color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .03em;
    display: grid; place-items: center; flex: none;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary) 22%, transparent);
}
.account-menu__profile-info { display: grid; gap: .12rem; min-width: 0; }
.account-menu__name {
    font-size: .9rem; font-weight: 750; color: var(--color-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-menu__email {
    font-size: .76rem; color: var(--color-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-menu__profile-arrow { width: 1rem; height: 1rem; color: var(--color-muted); flex: none; transition: transform .15s ease, color .15s ease; }
.account-menu__profile:hover .account-menu__profile-arrow { transform: translateX(2px); color: var(--color-primary); }

/* Üye navigasyon listesi */
.account-menu__list {
    list-style: none; margin: 0; padding: .4rem;
    display: grid; gap: .15rem;
}
.account-menu__item {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    padding: .55rem .65rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background .15s ease, color .15s ease;
}
.account-menu__item:hover {
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
}
.account-menu__item-icon {
    width: 2.15rem; height: 2.15rem; border-radius: calc(var(--radius-md) - 1px);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--color-primary);
    display: grid; place-items: center; flex: none;
    transition: background .15s ease, color .15s ease;
}
.account-menu__item:hover .account-menu__item-icon {
    background: var(--color-primary);
    color: var(--color-primary-contrast, #fff);
}
.account-menu__item-icon svg { width: 1.15rem; height: 1.15rem; }
.account-menu__item-body { display: grid; gap: .08rem; min-width: 0; }
.account-menu__item-body strong { font-size: .85rem; font-weight: 680; color: var(--color-text); line-height: 1.25; }
.account-menu__item:hover .account-menu__item-body strong { color: var(--color-primary); }
.account-menu__item-body span { font-size: .74rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu__badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.35rem; height: 1.35rem; padding: 0 .38rem;
    border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-contrast, #1b2428);
    font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Üye alt aksiyonlar (Özet + Çıkış) */
.account-menu__foot {
    padding: .75rem .9rem .85rem;
    background: #f9fbfa;
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    align-items: center;
}
.account-menu__logout-form { margin: 0; display: contents; }
.account-menu__btn {
    padding: .58rem .8rem; border-radius: var(--radius-md);
    font-size: .835rem; font-weight: 700; text-align: center;
    justify-content: center; white-space: nowrap;
}
.account-menu__logout {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    width: 100%; padding: .58rem .8rem; border-radius: var(--radius-md);
    border: 1px solid #fecaca; background: #fff5f5; color: var(--color-danger);
    font: inherit; font-size: .835rem; font-weight: 700; cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.account-menu__logout svg { width: 1rem; height: 1rem; flex: none; }
.account-menu__logout:hover { background: #fee2e2; border-color: #fca5a5; }

/* Misafir karşılama durumu */
.account-menu__guest {
    padding: 1.45rem 1.25rem 1.15rem;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: .5rem;
}
.account-menu__guest-icon {
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--color-primary);
    display: grid; place-items: center;
    margin-bottom: .15rem;
}
.account-menu__guest-icon svg { width: 1.65rem; height: 1.65rem; }
.account-menu__guest-title { margin: 0; font-size: .95rem; font-weight: 750; color: var(--color-primary); }
.account-menu__guest-desc { margin: 0 0 .35rem; font-size: .8rem; line-height: 1.48; color: var(--color-muted); }
.account-menu__guest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
.account-menu__guest-links {
    padding: .55rem .85rem .7rem;
    background: #f9fbfa;
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: .25rem;
}
.account-menu__quick-link {
    display: flex; align-items: center; gap: .5rem;
    padding: .42rem .55rem; border-radius: var(--radius-sm);
    font-size: .8rem; font-weight: 650; color: var(--color-text);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.account-menu__quick-link svg { width: 1.05rem; height: 1.05rem; color: var(--color-primary); flex: none; }
.account-menu__quick-link:hover {
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-primary);
}
@media (max-width: 480px) {
    .account-menu {
        position: fixed;
        top: 4.1rem;
        left: .75rem;
        right: .75rem;
        width: auto;
    }
}

/* Header Mini Sepet (açılır kart) */
.mini-cart {
    width: min(390px, calc(100vw - 1.5rem));
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-border));
    box-shadow: 0 22px 48px rgb(15 23 42 / .18);
}
.mini-cart__head {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .9rem 1.1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 6%, var(--color-surface)), var(--color-surface));
    border-bottom: 1px solid var(--color-border);
}
.mini-cart__title-group { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.mini-cart__head-icon { width: 1.2rem; height: 1.2rem; color: var(--color-primary); flex: none; }
.mini-cart__title { font-size: .95rem; font-weight: 750; color: var(--color-primary); }
.mini-cart__pill {
    display: inline-flex; align-items: center; padding: .15rem .55rem; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary); font-size: .75rem; font-weight: 700;
}
.mini-cart__close {
    width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0;
    background: color-mix(in srgb, var(--color-primary) 7%, transparent);
    color: var(--color-muted); cursor: pointer;
    display: inline-grid; place-items: center; flex: none;
    transition: background .15s ease, color .15s ease;
}
.mini-cart__close svg { width: 1rem; height: 1rem; }
.mini-cart__close:hover { background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-text); }

/* Ücretsiz kargo ilerleme çubuğu */
.mini-cart__shipping {
    padding: .65rem 1.1rem;
    background: #f4f8f8;
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 10%, var(--color-border));
    display: grid; gap: .4rem;
    font-size: .8rem; color: var(--color-text);
}
.mini-cart__shipping--done {
    background: #ecf9f1; border-bottom-color: #bbf0d0; color: #0f5132;
}
.mini-cart__shipping-text { display: flex; align-items: center; gap: .45rem; line-height: 1.35; }
.mini-cart__shipping-text svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--color-primary); }
.mini-cart__shipping--done .mini-cart__shipping-text svg { color: #16a34a; }
.mini-cart__progress { height: 6px; border-radius: var(--radius-pill); background: #dce7e9; overflow: hidden; }
.mini-cart__progress > span { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transition: width .3s ease; }

/* Boş sepet durumu */
.mini-cart__empty-state {
    padding: 1.75rem 1.35rem 1.4rem;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: .55rem;
}
.mini-cart__empty-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    color: var(--color-primary);
    display: grid; place-items: center;
    margin-bottom: .2rem;
}
.mini-cart__empty-icon svg { width: 1.75rem; height: 1.75rem; }
.mini-cart__empty { margin: 0; font-size: .975rem; font-weight: 750; color: var(--color-primary); }
.mini-cart__empty-desc { margin: 0 0 .45rem; font-size: .825rem; line-height: 1.5; color: var(--color-muted); max-width: 30ch; }
.mini-cart__empty-actions { display: grid; gap: .5rem; width: 100%; }

/* Sepet ürün satırları */
.mini-cart__lines {
    list-style: none; margin: 0; padding: .35rem 0;
    max-height: 310px; overflow-y: auto;
    display: grid;
}
.mini-cart__line {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    padding: .65rem 1.1rem;
    border-bottom: 1px solid #f1f4f3;
    transition: background .15s ease;
}
.mini-cart__line:last-child { border-bottom: 0; }
.mini-cart__line:hover { background: #fafcfb; }
.mini-cart__thumb {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    border: 1px solid #e9eeec; background: #fff;
    display: grid; place-items: center; overflow: hidden; flex: none;
    text-decoration: none;
}
.mini-cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.mini-cart__thumb-placeholder { width: 1.6rem; height: 1.6rem; color: var(--color-muted); opacity: .55; }
.mini-cart__info { display: grid; gap: .25rem; min-width: 0; }
.mini-cart__info-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.mini-cart__name {
    font-size: .85rem; font-weight: 650; line-height: 1.35;
    color: var(--color-text); text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-cart__name:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.mini-cart__variant { font-size: .75rem; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart__remove {
    background: none; border: 0; padding: .2rem; border-radius: calc(var(--radius-sm) - 2px);
    color: var(--color-muted); cursor: pointer; flex: none;
    display: inline-grid; place-items: center;
    transition: background .15s ease, color .15s ease;
}
.mini-cart__remove svg { width: .95rem; height: .95rem; }
.mini-cart__remove:hover { background: #fef2f2; color: var(--color-danger); }
.mini-cart__line-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .1rem; }
.mini-cart__stepper {
    display: inline-flex; align-items: center;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    background: #fff; overflow: hidden;
}
.mini-cart__step {
    width: 1.65rem; height: 1.65rem; border: 0; background: transparent;
    color: var(--color-primary); font: inherit; font-size: .9rem; font-weight: 700;
    cursor: pointer; display: inline-grid; place-items: center;
    transition: background .15s ease;
}
.mini-cart__step:hover:not(:disabled) { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.mini-cart__step:disabled { opacity: .45; cursor: not-allowed; }
/* Sepet bildirimi (sales/api.js announce): her sayfada görünür olsun diye site.css'te; mobilde alt menünün üstünde (portal #823). */
.sales-toast { position: fixed; right: 1rem; bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); z-index: 1000; max-width: min(24rem, calc(100vw - 2rem)); padding: .75rem 1rem; border-radius: var(--radius, 8px); background: #1f2933; color: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .18); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.sales-toast.is-visible { opacity: 1; transform: none; }
/* Panel kullanıcısına "panelde düzenle" kısayolu (AdminEditLink). Mobil alt çubuğun üstünde, çerez bandının altında kalır. */
.admin-edit-link { position: fixed; left: 1rem; bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); z-index: 85; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; background: #0f172a; color: #f8fafc; font-size: .8125rem; font-weight: 600; line-height: 1; text-decoration: none; box-shadow: 0 6px 18px rgb(15 23 42 / .28); opacity: .88; transition: opacity .15s, transform .15s; }
.admin-edit-link:hover, .admin-edit-link:focus-visible { opacity: 1; color: #fff; transform: translateY(-1px); }
.admin-edit-link__icon { flex: none; }
@media print { .admin-edit-link { display: none; } }
.sales-toast--error { background: var(--color-danger, #c0392b); }
.mini-cart__qty {
    min-width: 1.6rem; text-align: center; font-size: .8rem; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--color-text);
}
.mini-cart__qty-badge { font-size: .78rem; color: var(--color-muted); font-weight: 600; }
.mini-cart__price {
    text-align: right; display: flex; flex-direction: column; align-items: flex-end;
    line-height: 1.2; font-variant-numeric: tabular-nums;
}
.mini-cart__price del { font-size: .72rem; color: var(--color-muted); }
.mini-cart__price strong { font-size: .88rem; font-weight: 750; color: var(--color-primary); }
.mini-cart__more {
    display: block; text-align: center; padding: .5rem 1rem;
    background: #f8faf9; border-top: 1px solid var(--color-border);
    font-size: .78rem; font-weight: 650; color: var(--color-primary); text-decoration: none;
}
.mini-cart__more:hover { text-decoration: underline; }

/* Alt toplam ve aksiyonlar */
.mini-cart__foot {
    padding: .9rem 1.1rem 1.05rem;
    background: #f9fbfa;
    border-top: 1px solid var(--color-border);
    display: grid;
    gap: .65rem;
}
.mini-cart__summary-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .8rem; font-variant-numeric: tabular-nums;
}
.mini-cart__summary-row--discount { color: #0f5132; font-weight: 650; }
.mini-cart__total {
    margin: 0;
    display: flex; align-items: baseline; justify-content: space-between;
    font-size: .92rem; color: var(--color-text); font-variant-numeric: tabular-nums;
}
.mini-cart__total strong { font-size: 1.15rem; font-weight: 800; color: var(--color-primary); }
.mini-cart__actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: .55rem; }
.mini-cart__actions--single { grid-template-columns: 1fr; }
/* Stok sorunu olan satır toplama girmez (sepet sayfasıyla aynı işaret). */
.mini-cart__warning { color: var(--color-danger); font-size: .75rem; font-weight: 600; }
.mini-cart__line--unavailable .mini-cart__thumb { opacity: .55; }
.mini-cart__line--unavailable .mini-cart__price strong { text-decoration: line-through; color: var(--color-muted); }
.mini-cart__blocked { margin: 0 0 .55rem; color: var(--color-danger); font-size: .8rem; font-weight: 600; }
.mini-cart__btn {
    padding: .62rem .85rem; border-radius: var(--radius-md);
    font-size: .85rem; font-weight: 700; text-align: center;
    justify-content: center; white-space: nowrap;
}
@media (max-width: 480px) {
    .mini-cart {
        position: fixed;
        top: 4.1rem;
        left: .75rem;
        right: .75rem;
        width: auto;
    }
}

/* Mega menü ve kategori şeridi (Docs/12 §2.3) */
.mega-menu { background: var(--header-bg, var(--color-surface)); color: var(--header-color, var(--color-text)); border-bottom: 1px solid var(--color-border); position: relative; z-index: 45; }
.mega-menu__inner { display: block; padding-block: 0; }
.mega-menu__trigger, .mega-menu__quick { display: none; }
.mega-menu__trigger {
    align-items: center; gap: .5rem; padding: .55rem 1rem;
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent); border-radius: var(--radius);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent); color: var(--color-primary);
    font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.mega-menu__trigger:hover, .mega-menu__trigger[aria-expanded="true"] {
    background: var(--color-primary); color: var(--color-primary-contrast, #fff); border-color: var(--color-primary);
}
.mega-menu__trigger-icon { width: 1.1rem; height: 1.1rem; flex: none; }
.mega-menu__trigger-caret { width: .9rem; height: .9rem; flex: none; transition: transform .2s ease; }
.mega-menu__trigger[aria-expanded="true"] .mega-menu__trigger-caret { transform: rotate(180deg); }

/* Hızlı bağlantılar (Kampanyalar / Markalar / İndirimli Ürünler) */
.mega-menu__quick { gap: .5rem; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; flex: none; }
.mega-menu__quick a {
    display: inline-flex; align-items: center; padding: .45rem .85rem; border-radius: var(--radius-pill);
    font-size: .825rem; font-weight: 650; text-decoration: none; color: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 6%, transparent); transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.mega-menu__quick li:last-child a { background: color-mix(in srgb, var(--color-accent) 18%, transparent); color: color-mix(in srgb, var(--color-accent) 55%, #111); }
.mega-menu__quick a:hover { background: var(--color-primary); color: var(--color-primary-contrast, #fff); }

/* Tüm Kategoriler açılır paneli & mobil çekmece */
.mega-menu__panel { position: fixed; inset: 0; z-index: 75; display: flex; }
/* Panel açıkken menü katmanı yapışkan header'ın (z 50) üstüne çıkar: telefonda çekmece başlığı ve kapat düğmesi header altında kalıyordu (portal #841). */
.mega-menu:has(.mega-menu__panel:not([hidden])) { z-index: 200; }
.mega-panel__backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / .45); }
.mega-panel__box {
    position: relative; z-index: 1; width: min(100%, 380px); max-width: 100%;
    height: 100%; overflow-y: auto; background: var(--color-surface); padding: 1rem;
    box-shadow: 0 20px 40px rgb(0 0 0 / .18); margin: 0;
}
.mega-panel__mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem; color: var(--color-primary);
}
.mega-menu__close {
    background: #f3f4f6; border: 0; width: 44px; height: 44px; border-radius: 50%; /* dokunma hedefi ≥ 44 px (portal #841) */
    font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--color-text);
    display: inline-grid; place-items: center;
}
.mega-panel__mobile-quick {
    display: flex; flex-wrap: wrap; gap: .4rem; list-style: none;
    margin: 0 0 1rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--color-border);
}
.mega-panel__mobile-quick a {
    display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .85rem; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent); color: var(--color-primary);
    font-size: .8125rem; font-weight: 650; text-decoration: none;
}
.cms-mega-split { display: none; }
.cms-mega-mobile { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.cms-mega-mobile__item { border-bottom: 1px solid #f1f3f2; }
.cms-mega-mobile__item summary, .cms-mega-mobile__link {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem .25rem; font-weight: 650; font-size: .925rem;
    color: var(--color-text); text-decoration: none; cursor: pointer; list-style: none;
}
.cms-mega-mobile__item summary::-webkit-details-marker { display: none; }
.cms-mega-mobile__caret { color: var(--color-muted); transition: transform .2s ease; }
.cms-mega-mobile__item details[open] .cms-mega-mobile__caret { transform: rotate(180deg); }
.cms-mega-mobile__sub { padding: .25rem 0 .75rem .75rem; display: grid; gap: .65rem; }
.cms-mega-mobile__all {
    font-size: .8125rem; font-weight: 700; color: var(--color-primary); text-decoration: none;
}
.cms-mega-mobile__group { display: grid; gap: .25rem; }
.cms-mega-mobile__group-title { font-size: .85rem; font-weight: 650; color: var(--color-text); text-decoration: none; }
.cms-mega-mobile__group ul { list-style: none; margin: 0; padding: 0 0 0 .65rem; display: grid; gap: .2rem; border-left: 2px solid #e5e7eb; }
.cms-mega-mobile__group li a { font-size: .8125rem; color: #4b5563; text-decoration: none; }
/* Çekmecedeki tüm bağlantılar en az 44 px yüksek dokunma hedefi (portal #841); satır aralığı hedefin içine alınır. */
.cms-mega-mobile__all, .cms-mega-mobile__group-title, .cms-mega-mobile__group li a { display: flex; align-items: center; min-height: 44px; }
.cms-mega-mobile__sub, .cms-mega-mobile__group, .cms-mega-mobile__group ul { gap: 0; }

/* Header autocomplete sonuçları (tüm vitrin sayfalarında ortak) */
.site-search__list { list-style: none; margin: 0; padding: 0; }
.site-search__item { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; text-decoration: none; color: inherit; border-radius: calc(var(--radius-sm) - 2px); }
.site-search__item:hover, .site-search__item:focus { background: var(--theme-surface-muted, #f3f5f6); }
.site-search__item img { border-radius: calc(var(--radius-sm) / 2); object-fit: cover; }
.site-search__text { flex: 1; }
.site-search__price { font-weight: 600; white-space: nowrap; }
/* Panel kendi içinde kayarken "tüm sonuçlar" bağlantısı altta görünür kalır. */
.site-search__all { position: sticky; bottom: -.5rem; display: block; margin: .25rem -.5rem -.5rem; padding: .7rem .75rem; border-top: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); font-weight: 650; text-align: center; text-decoration: none; }
.site-search__empty { padding: .75rem; color: var(--color-muted, #6b7780); }

/* Ana içerik */
.store-main { min-height: 50vh; padding-bottom: 4.5rem; }
.hero { background: linear-gradient(135deg, #e8f0f2, #f7f3ec); padding: 3rem 0; text-align: center; }
.hero__title { font-size: clamp(1.75rem, 5vw, 3rem); margin: 0 0 .5rem; color: var(--color-primary); }
.hero__text { margin: 0 0 1.25rem; color: var(--color-muted); }
.home-section { margin-block: 2rem; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space); }
.category-grid__item--placeholder { aspect-ratio: 1; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius); }
.campaign-band { background: var(--color-surface); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.product-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: var(--space); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-carousel > * { scroll-snap-align: start; }

/* Ürün kartı (Docs/12 §5) */
.product-card { height: 100%; display: flex; flex-direction: column; gap: .65rem; padding: .75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--theme-radius-card, 14px); box-shadow: 0 2px 10px color-mix(in srgb, var(--color-primary) 4%, transparent); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.product-card:hover { border-color: color-mix(in srgb, var(--color-primary) 24%, transparent); box-shadow: 0 10px 24px color-mix(in srgb, var(--color-primary) 10%, transparent); transform: translateY(-2px); }
.product-card__media { display: block; flex: none; aspect-ratio: 1; overflow: hidden; background: linear-gradient(145deg, #fbfcfb, #f4f7f5); border: 1px solid #edf0ee; border-radius: var(--radius, 10px); position: relative; }
.product-card__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 1rem; object-fit: contain; transition: opacity .25s ease, transform .35s ease; }
.product-card__media img.product-card__hover { opacity: 0; }
.product-card__media:hover img:first-of-type { transform: scale(1.04); }
.product-card__media:hover img.product-card__hover { opacity: 1; }
.product-card__badges { position: absolute; top: .6rem; left: .6rem; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.product-card__brand { min-height: 1.2em; overflow: hidden; margin: .15rem 0 -.35rem; color: var(--color-muted); font-size: .75rem; font-weight: 650; letter-spacing: .075em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.product-card__brand a { color: inherit; text-decoration: none; }
.product-card__brand a:hover { color: var(--color-primary); }
.product-card__name { min-height: 2.6em; overflow: hidden; margin: 0; font-size: .95rem; font-weight: 650; line-height: 1.3; }
.product-card__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-primary); text-decoration: none; }
.product-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__rating { min-height: 1.25em; margin: -.2rem 0 0; color: #b17b18; font-size: .8rem; }
.product-card__rating--empty { visibility: hidden; }
.product-card__price { display: grid; align-content: start; gap: .08rem; min-height: 3.65rem; line-height: 1.35; }
.product-card__price del { min-height: 1.1em; color: var(--color-muted); font-size: .8rem; }
.product-card__price strong { color: #202b2e; font-size: 1.08rem; font-weight: 750; }
.product-card__price-empty { visibility: hidden; }
.product-card__cart-price { min-height: 1.1em; color: var(--color-danger); font-size: .78rem; font-weight: 650; }
.product-card__actions { display: flex; gap: .5rem; align-items: center; margin-top: auto; padding-top: .15rem; }
.product-card__actions .btn { min-height: 2.85rem; flex: 1; min-width: 0; white-space: nowrap; border-radius: calc(var(--radius-md) - 1px); font-size: .9rem; font-weight: 650; }
.product-card__actions .btn:disabled { border-color: #e4eaeb; background: #edf2f3; color: #6b7d81; opacity: 1; }
.product-card__actions .btn-icon { display: grid; width: 2.85rem; height: 2.85rem; flex: none; place-items: center; border: 1px solid var(--color-border); border-radius: calc(var(--radius-md) - 1px); color: var(--color-primary); font-size: 1.35rem; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.product-card__actions .btn-icon:hover, .product-card__actions .btn-icon[aria-pressed="true"] { border-color: #f2d9d7; background: #fff4f3; color: var(--color-danger); }
.product-card--placeholder { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
    .product-card, .product-card__media img, .product-card__actions .btn-icon { transition: none; }
    .product-card:hover { transform: none; }
}

/* Etiket / rozet */
.tag { display: inline-block; padding: .1rem .45rem; border-radius: calc(var(--radius-sm) / 2); font-size: .75rem; font-weight: 600; color: #fff; background: var(--color-primary); }
.tag--discount { background: var(--color-danger); }
.tag--new { background: var(--color-accent); color: var(--color-accent-contrast, #1b2428); }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 1rem 0; padding: 0; font-size: .8125rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .25rem; color: var(--color-muted); }

/* Footer */
.site-footer { background: var(--footer-bg, var(--color-surface)); color: var(--footer-color, var(--color-text)); border-top: 1px solid var(--color-border); margin-top: 3rem; font-size: .875rem; }
.site-footer__columns { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
/* Tek sütunlu (telefon) düzende kolon başlıkları ve linkler ortalanır; 768px+ kolonlu düzende sola yaslanır. */
.site-footer__columns > section { text-align: center; }
.site-footer__columns .newsletter-form .checkbox { text-align: left; }
.site-footer h3 { position: relative; font-size: 1rem; margin: 0 0 1.35rem; padding-bottom: .75rem; font-weight: 700; color: var(--footer-color, var(--color-text)); }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 2rem; height: 3px; border-radius: calc(var(--radius-sm) / 4); background: var(--color-accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.site-footer__columns ul, .site-footer address { color: var(--footer-link, #4b5563); font-size: .875rem; line-height: 1.55; }
.site-footer address { font-style: normal; }
.site-footer address p { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.site-footer__address-line { white-space: pre-line; }
/* Menüden gelen bağlantısız metin satırları (footer adres bloğu) */
.site-footer__text { color: var(--footer-link, var(--color-muted)); }
.site-footer__newsletter p { margin: 0 0 1rem; color: var(--footer-link, var(--color-muted)); }
.newsletter-form { display: grid; gap: .65rem; }
.newsletter-form .btn { width: 100%; }
.newsletter-form .checkbox { font-size: .75rem; line-height: 1.5; text-align: left; color: var(--footer-link, #4b5563); }
.newsletter-form .checkbox input { flex: none; margin-top: .2rem; }
.newsletter-form__note { margin: 0; font-size: .75rem; line-height: 1.5; color: var(--footer-link, #4b5563); text-align: left; }
.newsletter-form__note a { text-decoration: underline; }
.site-footer__lower { background: color-mix(in srgb, var(--footer-bg, var(--color-surface)) 95%, var(--footer-color, #000) 5%); border-top: 1px solid var(--color-border); }
.site-footer__bottom { display: grid; justify-items: center; gap: 1rem; padding-block: 1.5rem; }
.site-footer .site-footer__badges, .site-footer .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
/* Rozetler her genişlikte alt satıra iner; tek satır zorlaması ~1007 px'te yatay taşma yapıyordu (portal #829). */
.site-footer .site-footer__badges { max-width: 100%; }
.site-footer__badges li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .45rem .75rem; border: 1px solid var(--color-border); border-radius: calc(var(--radius-sm) - 2px); background: var(--color-surface); color: #394657; font-size: .75rem; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .04); }
.site-footer__badge-icon { width: 1.15rem; height: 1.15rem; flex: none; color: var(--color-primary); }
.site-footer .social-links a { display: inline-block; padding: .25rem .5rem; font-size: .8rem; }
.site-footer__credits { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; border-top: 1px solid var(--color-border); padding-block: 1rem 5rem; color: var(--footer-link, #4b5563); font-size: .8rem; text-align: center; }
.site-footer__credits small { font-size: inherit; }

/* Mobil alt tab bar */
.mobile-tab-bar { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--color-surface); border-top: 1px solid var(--color-border); z-index: 80; }
.mobile-tab-bar a,
.mobile-tab-bar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px 0 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: .01em;
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}
.mobile-tab-bar [class^="icon-"] {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
}
.mobile-tab-bar [class^="icon-"]::before {
    width: 22px;
    height: 22px;
    vertical-align: 0;
}
.mobile-tab-bar .badge-count {
    position: absolute;
    top: 3px;
    left: calc(50% + 6px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-primary-contrast, #fff);
}
.mobile-tab-bar .badge-count[hidden],
.mobile-tab-bar .badge-count:empty { display: none; }

/* Çerez banner'ı */
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 3.5rem; background: #111827; color: #f9fafb; z-index: 90; font-size: .875rem; }
.cookie-consent a { color: #fff; }
.cookie-consent__inner { display: grid; gap: .75rem; padding-block: 1rem; }
.cookie-consent__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-consent .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.site-footer__cookie-link { padding: 0; font-size: inherit; color: inherit; text-decoration: underline; }

/* Çerez Ayarları paneli */
.cookie-settings { width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,.25); color: inherit; }
.cookie-settings[open] { display: flex; flex-direction: column; }
.cookie-settings::backdrop { background: rgba(15, 23, 42, .55); }
.cookie-settings__head, .cookie-settings__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--color-border); }
.cookie-settings__head h2 { margin: 0; font-size: 1.1rem; }
.cookie-settings__close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.cookie-settings__body { padding: 1rem; overflow: auto; font-size: .9rem; line-height: 1.55; }
.cookie-settings__body > p { margin-top: 0; }
.cookie-settings__category { border-top: 1px solid var(--color-border); padding-block: .75rem; }
.cookie-settings__category p { margin: .35rem 0; color: var(--color-muted); }
.cookie-settings__category details summary { cursor: pointer; font-size: .85rem; }
.cookie-settings__category ul { margin: .35rem 0 0; padding-left: 1.2rem; font-size: .85rem; }
.cookie-settings__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-settings__row h3 { margin: 0; font-size: .95rem; }
.cookie-switch { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.cookie-switch input { width: 1.1rem; height: 1.1rem; accent-color: var(--color-primary); }
.cookie-settings__foot { border-top: 1px solid var(--color-border); border-bottom: 0; flex-wrap: wrap; justify-content: flex-end; }


/* Hata / yer tutucu sayfalar */
.error-page { padding-block: 2.5rem 3.5rem; }
.error-page__card { max-width: 680px; margin: 0 auto; }
.error-page__badge {
    display: inline-block; padding: .28rem .75rem; border-radius: var(--radius-pill);
    background: rgb(31 78 95 / .1); color: var(--color-primary);
    font-size: .75rem; font-weight: 750; letter-spacing: .05em;
}
.error-page__status { font-size: 3rem; font-weight: 700; margin: 0; color: var(--color-primary); }
.error-page__support { color: var(--color-muted); font-size: .825rem; margin: .25rem 0; }
.auth-placeholder { padding-block: 2rem; }

/* Panel şablonu */

@media (min-width: 768px) {
    .site-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search actions"; padding-block: .75rem; }
    .site-header__hamburger { display: none; }
    .site-header__logo { --logo-size: var(--logo-w, 200px); }
    .header-action__label { display: inline; font-size: .875rem; font-weight: 600; }
    .mega-menu { position: relative; }
    .mega-menu__inner { display: flex; align-items: center; gap: .75rem; padding-block: .25rem; }
    .mega-menu__trigger, .mega-menu__quick { display: inline-flex; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-carousel { grid-auto-columns: calc((100% - 3 * var(--space)) / 4); }
    .site-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__columns > section { text-align: left; }
    .site-footer h3::after { left: 0; transform: none; }
    .site-footer__newsletter { grid-column: auto; max-width: none; }
    .site-footer__credits { padding-bottom: 1rem; }
    .mobile-tab-bar { display: none; }
    .store-main { padding-bottom: 0; }
    .cookie-consent { bottom: 0; }
    .sales-toast { bottom: 1rem; }
    .admin-edit-link { bottom: 1rem; }
    .cookie-consent__inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1024px) {
    .mega-menu__panel {
        position: absolute; inset: 100% 0 auto 0; z-index: 70;
        display: block; background: transparent; pointer-events: none;
    }
    .mega-panel__backdrop,
    .mega-panel__mobile-head,
    .mega-panel__mobile-quick,
    .cms-mega-mobile { display: none; }
    .mega-panel__box {
        pointer-events: auto; width: 100%; max-width: var(--container);
        margin: 0 auto; padding: 0; height: auto; max-height: 76vh;
        background: var(--color-surface); border: 1px solid var(--color-border);
        border-top: 0; border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
        box-shadow: 0 22px 48px rgb(16 24 40 / .16); overflow: hidden;
    }
    .cms-mega-split {
        display: grid; grid-template-columns: 270px 1fr; min-height: 360px; max-height: 74vh;
    }
    .cms-mega__sidebar {
        list-style: none; margin: 0; padding: .75rem .5rem;
        background: #f8faf9; border-right: 1px solid var(--color-border);
        overflow-y: auto; display: grid; gap: .2rem; align-content: start;
    }
    .cms-mega__tab {
        width: 100%; border: 0; background: transparent; font: inherit;
        display: flex; align-items: center; justify-content: space-between; gap: .5rem;
        padding: .65rem .85rem; border-radius: var(--radius-sm);
        color: var(--color-text); font-size: .9rem; font-weight: 600;
        text-align: left; cursor: pointer;
        transition: background .15s ease, color .15s ease;
    }
    .cms-mega__tab:hover:not(.is-active) {
        background: color-mix(in srgb, var(--color-primary) 8%, transparent); color: var(--color-primary);
    }
    .cms-mega__tab.is-active {
        background: var(--color-primary); color: var(--color-primary-contrast, #fff);
    }
    .cms-mega__tab-label { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
    .cms-mega__tab-thumb { width: 24px; height: 24px; border-radius: calc(var(--radius-sm) - 2px); object-fit: cover; flex: none; background: #fff; }
    .cms-mega__tab-arrow { font-size: 1.1rem; line-height: 1; opacity: .75; flex: none; }
    .cms-mega__panes { padding: 1.35rem 1.75rem; overflow-y: auto; background: var(--color-surface); }
    .cms-mega__pane-head {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding-bottom: .85rem; margin-bottom: 1.15rem; border-bottom: 1px solid var(--color-border);
    }
    .cms-mega__pane-title { margin: 0; font-size: 1.15rem; color: var(--color-primary); }
    .cms-mega__pane-title a { color: inherit; text-decoration: none; }
    .cms-mega__pane-title a:hover { text-decoration: underline; }
    .cms-mega__pane-all {
        font-size: .85rem; font-weight: 700; color: var(--color-primary);
        text-decoration: none; white-space: nowrap;
        padding: .35rem .75rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-primary) 7%, transparent);
        transition: background .15s ease, color .15s ease;
    }
    .cms-mega__pane-all:hover { background: var(--color-primary); color: var(--color-primary-contrast, #fff); }
    .cms-mega__pane-body {
        display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start;
    }
    .cms-mega__pane-body.has-visual {
        grid-template-columns: 1fr 220px;
    }
    .cms-mega__grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: .65rem 1.25rem; align-items: start;
    }
    .cms-mega__col { display: grid; gap: .35rem; align-content: start; }
    .cms-mega__head {
        font-size: .9rem; font-weight: 700; color: var(--color-text);
        text-decoration: none; padding-bottom: .25rem; border-bottom: 1px solid #f0f2f1;
        display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    }
    .cms-mega__head-text { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
    .cms-mega__col-thumb { width: 32px; height: 32px; border-radius: calc(var(--radius-sm) - 2px); object-fit: cover; flex: none; background: #fff; border: 1px solid #eef1f0; }
    .cms-mega__col--leaf .cms-mega__head {
        font-weight: 600; padding: .55rem .75rem; border: 1px solid #eef1f0;
        border-radius: var(--radius-sm); background: #fafbfa; transition: border-color .15s ease, background .15s ease, color .15s ease;
    }
    .cms-mega__col--leaf .cms-mega__head:hover {
        border-color: rgb(31 78 95 / .28); background: rgb(31 78 95 / .05); color: var(--color-primary);
    }
    .cms-mega__leaf-arrow { color: var(--color-muted); font-size: 1rem; line-height: 1; flex: none; }
    a.cms-mega__head:hover { color: var(--color-primary); }
    .cms-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
    .cms-mega__col li a, .cms-mega__col li span {
        font-size: .825rem; color: #4b5563; text-decoration: none; line-height: 1.45; display: inline-block;
    }
    .cms-mega__col li a:hover { color: var(--color-primary); text-decoration: underline; }
    .cms-mega__more { font-weight: 650; color: var(--color-primary) !important; margin-top: .15rem; }
    .cms-mega__visual {
        display: flex; flex-direction: column; gap: .5rem; width: 220px;
        padding: .65rem; border-radius: calc(var(--radius-md) + 2px); overflow: hidden;
        border: 1px solid var(--color-border); background: #f8faf9;
        text-decoration: none; color: var(--color-primary);
        transition: border-color .2s ease, box-shadow .2s ease;
    }
    .cms-mega__visual:hover {
        border-color: var(--color-primary); box-shadow: 0 8px 20px rgb(31 78 95 / .1);
    }
    .cms-mega__visual img {
        display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: #fff;
    }
    .cms-mega__visual-caption {
        font-size: .8125rem; font-weight: 700; text-align: center; padding-block: .15rem;
    }
    .cms-mega__products {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .85rem; align-items: stretch;
    }
    .cms-mega__products:has(.cms-mega__product-more) .cms-mega__product--fourth {
        display: none;
    }
    .cms-mega__product {
        display: flex; flex-direction: column; gap: .5rem;
        padding: .65rem; border-radius: calc(var(--radius-md) + 2px);
        border: 1px solid var(--color-border); background: var(--color-surface);
        text-decoration: none; color: var(--color-text);
        transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    }
    .cms-mega__product:hover {
        border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 10%, transparent);
        transform: translateY(-2px);
    }
    .cms-mega__product-media {
        position: relative; display: block; width: 100%; aspect-ratio: 1;
        border-radius: var(--radius-sm); overflow: hidden;
        background: linear-gradient(145deg, #fbfcfb, #f4f7f5); border: 1px solid #edf0ee;
    }
    .cms-mega__product-media img {
        display: block; width: 100%; height: 100%; padding: .5rem; object-fit: contain;
        transition: transform .25s ease;
    }
    .cms-mega__product:hover .cms-mega__product-media img {
        transform: scale(1.04);
    }
    .cms-mega__product-placeholder {
        display: block; width: 100%; height: 100%;
        background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, transparent 70%);
    }
    .cms-mega__product-badge {
        position: absolute; top: .45rem; left: .45rem;
        padding: .12rem .4rem; border-radius: calc(var(--radius-sm) / 2);
        background: var(--color-danger); color: #fff;
        font-size: .7rem; font-weight: 700; line-height: 1.2;
    }
    .cms-mega__product-title {
        font-size: .825rem; font-weight: 600; line-height: 1.35; color: var(--color-text);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        overflow: hidden; min-height: 2.25rem;
    }
    .cms-mega__product:hover .cms-mega__product-title {
        color: var(--color-primary);
    }
    .cms-mega__product-prices {
        margin-top: auto; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
    }
    .cms-mega__product-prices del {
        font-size: .74rem; color: var(--color-muted);
    }
    .cms-mega__product-prices strong {
        font-size: .92rem; font-weight: 750; color: var(--color-primary);
    }
    .cms-mega__product-more {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        gap: .55rem; padding: 1rem .85rem; border-radius: calc(var(--radius-md) + 2px); text-align: center;
        border: 1px dashed color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
        background: color-mix(in srgb, var(--color-primary) 5%, var(--color-surface));
        text-decoration: none; color: var(--color-primary);
        transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    }
    .cms-mega__product-more:hover {
        background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
        border-color: var(--color-primary); border-style: solid;
        box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 10%, transparent);
        transform: translateY(-2px);
    }
    .cms-mega__product-more-icon {
        width: 2.75rem; height: 2.75rem; border-radius: 50%;
        display: inline-grid; place-items: center;
        background: var(--color-primary); color: var(--color-primary-contrast, #fff);
        font-size: 1.2rem; font-weight: 700;
        transition: transform .2s ease;
    }
    .cms-mega__product-more:hover .cms-mega__product-more-icon {
        transform: translateX(3px);
    }
    .cms-mega__product-more-title {
        font-size: .9rem; font-weight: 750; line-height: 1.3; color: var(--color-primary);
    }
    .cms-mega__product-more-sub {
        font-size: .76rem; line-height: 1.4; color: var(--color-muted);
    }
    .cms-mega__product-more-cta {
        margin-top: .25rem; padding: .35rem .75rem; border-radius: var(--radius-pill);
        background: color-mix(in srgb, var(--color-primary) 12%, transparent);
        color: var(--color-primary); font-size: .78rem; font-weight: 700;
    }
}

@media (min-width: 1240px) {
    .cms-mega__products {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }
    .cms-mega__products:has(.cms-mega__product-more) .cms-mega__product--fourth {
        display: flex;
    }
}

@media (min-width: 960px) {
    .site-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
}

@media (min-width: 1240px) {
    .site-footer__columns { grid-template-columns: .95fr .85fr .9fr 1.35fr 1.15fr 1.35fr; gap: 1.25rem; }
    .site-footer__newsletter { grid-column: auto; }
}

/* Yazı logosu (Site.LogoStyle = wide) tablet genişliğinde arama kutusunu sıkıştırmasın: arama kendi satırına iner. */
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header__inner:has(.site-header__logo--wide) { grid-template-columns: 1fr auto; grid-template-areas: "logo actions" "search search"; }
    .layout-store--drawer-menu .site-header__inner:has(.site-header__logo--wide) { grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo actions" "search search search"; }
}

/* Masaüstü kategori menüsü: Soldan Açılır Yan Menü (Drawer) modu (Site.DesktopCategoryMenuStyle = Drawer) */
@media (min-width: 768px) {
    .layout-store--drawer-menu .site-header__inner {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "burger logo search actions";
        column-gap: 1rem;
    }
    .layout-store--drawer-menu .site-header__hamburger {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        color: var(--header-color, var(--color-text));
        transition: background .15s;
    }
    .layout-store--drawer-menu .site-header__hamburger:hover,
    .layout-store--drawer-menu .site-header__hamburger[aria-expanded="true"] {
        background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    }
    .layout-store--drawer-menu .mega-menu__trigger { display: none !important; }
    .layout-store--drawer-menu .mega-menu__inner { justify-content: flex-end; }
}

@media (min-width: 1024px) {
    .layout-store--drawer-menu .mega-menu__panel {
        position: fixed;
        inset: 0;
        z-index: 75;
        display: flex;
        background: none;
        pointer-events: auto;
    }
    .layout-store--drawer-menu .mega-menu:has(.mega-menu__panel:not([hidden])) { z-index: 200; }
    .layout-store--drawer-menu .mega-panel__backdrop { display: block; }
    .layout-store--drawer-menu .mega-panel__mobile-head,
    .layout-store--drawer-menu .mega-panel__mobile-quick { display: flex; }
    .layout-store--drawer-menu .cms-mega-mobile { display: grid; }
    .layout-store--drawer-menu .cms-mega-split { display: none; }
    .layout-store--drawer-menu .mega-panel__box {
        width: min(100%, 400px);
        max-width: 100%;
        height: 100%;
        max-height: none;
        margin: 0;
        padding: 1.25rem 1.25rem 2rem;
        border-radius: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .18);
        overflow-y: auto;
    }
}

/* Mobil form ve dokunma düzeltmeleri (16.11 mobil test bulguları) */
@media (max-width: 767px) {
    /* iOS Safari 16 px altındaki alana odaklanınca sayfayı yakınlaştırır ve geri almaz. */
    body.layout-store input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
    body.layout-store select,
    body.layout-store textarea,
    body.layout-store .select2-container .select2-search__field { font-size: 16px; }
    /* Dokunma hedefi en az 44×44 px: görünüm aynı kalır, dokunma alanı genişler. */
    .mini-cart__remove { position: relative; }
    .mini-cart__remove::after { content: ""; position: absolute; inset: -11px; }
    .mini-cart__step { width: 44px; height: 44px; }
}
@media (max-width: 480px) {
    /* 2 sütunlu ürün ızgarasında "Sepete Ekle" tek satırda kalsın. */
    .product-grid .product-card__actions { gap: .35rem; }
    .product-grid .product-card__actions .btn { padding-inline: .35rem; font-size: .8rem; }
}
