/* Kırıkkale Çiçekçin — tema.json'u tamamlayan yardımcı stiller (block'lar
   theme.json'dan yararlanır; burada yalnızca theme.json'un ifade edemediği
   özel kompozit bileşenler / hover / gradient / scroll davranışları var. */

:root {
    --kk-radius-sm: 8px;
    --kk-radius-md: 12px;
    --kk-radius-lg: 16px;
    --kk-radius-xl: 24px;
    --kk-radius-full: 999px;
    --kk-transition: 300ms ease-out;
}

.kk-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; fill: currentColor; }
.kk-icon-sm { width: 16px; height: 16px; }
.kk-icon-lg { width: 32px; height: 32px; }
.kk-icon-xl { width: 56px; height: 56px; }

/* Her <a href> için genel geçiş — hover'lar yumuşak olsun. */
a { transition: all 200ms ease; }

/* WP, harf+rakam bitişik preset slug'larını (h1, h2, h3, h5) CSS değişken ve
   utility class isimlerine çevirirken araya tire ekliyor (h3 -> "h-3"), bu
   yüzden markup'ta kullandığımız "has-h3-font-size" gibi class'lar için
   otomatik üretilen kural hiç oluşmuyor. Doğru boyutları burada garantiye alıyoruz. */
.has-h1-font-size { font-size: 48px !important; }
.has-h2-font-size { font-size: 40px !important; }
.has-h3-font-size { font-size: 32px !important; }
.has-h5-font-size { font-size: 20px !important; }

[hidden] { display: none !important; }

/* ------------------------------- Layout ------------------------------- */

/* Arama modalı ve mobil çekmece body'nin doğrudan çocuğu (wp-site-blocks dışında). */
.wp-site-blocks *,
.wp-site-blocks *::before,
.wp-site-blocks *::after,
.kk-search-modal,
.kk-search-modal *,
.kk-drawer,
.kk-drawer * { box-sizing: border-box; }

/* Kök blockGap (24px) header / breadcrumb / main / footer ve ana bölümler
   arasına rastgele margin ekliyordu; bölüm boşluklarını yalnızca aşağıdaki
   sınıflar belirlesin. */
.wp-site-blocks > *,
.kk-main > * { margin-block: 0 !important; }

.kk-container { width: 100%; padding-inline: 24px; }
@media (min-width: 782px) { .kk-container { padding-inline: 40px; } }

/* Tüm bölümler arası dikey ritim: mobil 40px, masaüstü 80px. */
.kk-section { display: flex; flex-direction: column; gap: 32px; padding-block: 40px; }
.kk-section-bottom { padding-top: 0 !important; padding-bottom: 40px; }
@media (min-width: 782px) {
    .kk-section { gap: 48px; padding-block: 80px; }
    .kk-section-bottom { padding-bottom: 80px; }
}
.kk-section > *,
.kk-stack > * { margin: 0 !important; }
.kk-stack { display: flex; flex-direction: column; gap: 16px; }
.kk-bordered-y { border-block: 1px solid var(--wp--preset--color--stroke-sub); }

.kk-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.kk-section-head > * { margin: 0 !important; }
.kk-section-head h2,
.kk-stack > h2 { font-size: 24px !important; line-height: 1.25; }
@media (min-width: 782px) {
    .kk-section-head h2,
    .kk-stack > h2 { font-size: 32px !important; }
}

/* Sayfa başlığı bloğu (kategori / arşiv / sayfa). */
.kk-page-head { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; padding-bottom: 16px; }
.kk-page-head--roomy { gap: 8px; padding-block: 32px; }
@media (min-width: 782px) {
    .kk-page-head { padding-top: 40px; padding-bottom: 24px; }
    .kk-page-head--roomy { padding-block: 48px; }
}
.kk-page-head > * { margin: 0 !important; }
.kk-page-title { font-size: 32px !important; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; color: var(--wp--preset--color--content-strong); }
@media (min-width: 782px) { .kk-page-title { font-size: 40px !important; } }
.kk-page-lead, .kk-page-lead p { max-width: 672px; font-size: 16px; line-height: 1.5; color: var(--wp--preset--color--content-soft); margin: 0; }

.kk-chips-section { padding: 24px 16px; }
@media (min-width: 782px) { .kk-chips-section { padding: 24px; } }
.kk-chips-block { padding-block: 32px; }
@media (min-width: 782px) { .kk-chips-block { padding-block: 40px; } }

/* --------------------------- Efektli ok linki --------------------------- */

.kk-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
    color: var(--wp--preset--color--content-strong);
    text-decoration: none !important;
}
.kk-link-arrow:hover,
.kk-link-arrow:focus-visible { color: var(--wp--preset--color--primary); }
/* İki ok üst üste: hover'da ilki sağa çıkar, ikincisi soldan girer. */
.kk-link-arrow-icon { position: relative; display: inline-flex; width: 16px; height: 16px; overflow: hidden; flex-shrink: 0; }
.kk-link-arrow-icon svg { position: absolute; inset: 0; transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1); }
.kk-link-arrow-icon svg:last-child { transform: translateX(-120%); }
.kk-link-arrow:hover .kk-link-arrow-icon svg:first-child,
.kk-link-arrow:focus-visible .kk-link-arrow-icon svg:first-child { transform: translateX(120%); }
.kk-link-arrow:hover .kk-link-arrow-icon svg:last-child,
.kk-link-arrow:focus-visible .kk-link-arrow-icon svg:last-child { transform: translateX(0); }

/* ------------------------------ Breadcrumb ------------------------------ */

.kk-breadcrumb-bar {
    position: relative;
    background: var(--wp--preset--color--bg-white);
    border-bottom: 1px solid var(--wp--preset--color--stroke-sub);
}
.kk-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 14px; font-weight: 500; line-height: 20px; }
.kk-breadcrumb-item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.kk-breadcrumb a.kk-breadcrumb-item { color: var(--wp--preset--color--content-soft); }
.kk-breadcrumb a.kk-breadcrumb-item:hover { color: var(--wp--preset--color--content-strong); }
.kk-breadcrumb-item.is-current { color: var(--wp--preset--color--content-strong); }
.kk-breadcrumb-sep { display: inline-flex; color: var(--wp--preset--color--content-soft); }

/* ------------------------------- Header ------------------------------- */

/* Sticky konumu kasıtlı olarak DIŞ template-part sarmalayıcısına (kk-header-outer)
   uygulanıyor: WP'nin template-part wrapper'ı (area:"header" ya da düz div fark
   etmiyor) doğrudan içindeki bir eleman sticky olduğunda tarayıcıda konum
   hesaplamasını bozan bir davranış sergiliyor. Sticky'yi bir üst seviyeye taşımak
   bunu güvenilir şekilde çözüyor. */
.kk-header-outer {
    position: sticky;
    top: 0;
    z-index: 50;
}
.kk-site-header {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--wp--preset--color--stroke-sub);
}
.kk-site-header > * { margin-block: 0 !important; }
.kk-header-top { gap: 16px; padding-block: 16px; }
@media (min-width: 782px) { .kk-header-top { gap: 24px; padding-block: 20px; } }
.kk-header-top > * { margin: 0 !important; }
.kk-header-nav { border-top: 1px solid var(--wp--preset--color--stroke-sub); }

.kk-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: var(--kk-radius-full);
    background: transparent; color: var(--wp--preset--color--content-strong);
    cursor: pointer; transition: background-color var(--kk-transition);
}
.kk-icon-btn:hover { background: var(--wp--preset--color--bg-weak); }

/* Mobilde arama / aksiyonlar / menü satırı gizlenir, hamburger çekmeceyi açar. */
@media (max-width: 781px) {
    .kk-header-top > .kk-search-trigger,
    .kk-header-actions,
    .kk-header-nav { display: none !important; }
}
@media (min-width: 782px) { .kk-menu-toggle { display: none !important; } }

/* ------------------------------- Mega menü ------------------------------- */

.kk-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.kk-nav-item { margin: 0; }
.kk-nav-divider { width: 1px; height: 24px; background: var(--wp--preset--color--stroke-sub); }
.kk-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-block: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--wp--preset--color--content-strong);
    text-decoration: none !important;
}
.kk-nav-link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 14px;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--kk-transition);
}
.kk-nav-link:hover,
.kk-nav-link[aria-expanded="true"] { color: var(--wp--preset--color--content-strong); }
.kk-nav-link:hover::after,
.kk-nav-link[aria-expanded="true"]::after { transform: scaleX(1); }

.kk-mega {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--wp--preset--color--stroke-sub);
    box-shadow: 0 16px 32px -12px rgba(153, 153, 153, 0.2);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--kk-transition), transform var(--kk-transition);
}
.kk-mega.is-open { opacity: 1; transform: none; pointer-events: auto; }
.kk-mega-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px; padding: 32px 40px; }
.kk-mega-col, .kk-mega-products { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kk-mega-title { font-size: 12px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; color: var(--wp--preset--color--content-soft); }
.kk-mega-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Uzun listeler kaydırma yerine iki sütuna yayılır; sol kolon biraz genişler. */
.kk-mega-panel.has-many-links { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.kk-mega-panel.has-many-links .kk-mega-links { display: block; column-count: 2; column-gap: 24px; }
.kk-mega-panel.has-many-links .kk-mega-links li { break-inside: avoid; padding-bottom: 8px; }
.kk-mega-link { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--content-strong); text-decoration: none !important; }
.kk-mega-link:hover, .kk-mega-link.is-primary { color: var(--wp--preset--color--primary); }
.kk-mega-products-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kk-mega-all { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--primary) !important; }
.kk-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kk-mega-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: inherit; text-decoration: none !important; }
.kk-mega-tile-img { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--wp--preset--color--bg-weak); }
.kk-mega-tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.kk-mega-tile:hover .kk-mega-tile-img img { transform: scale(1.05); }
.kk-mega-tile-title { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--content-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-mega-tile-price { font-size: 12px; color: var(--wp--preset--color--content-soft); }

/* ------------------------------ Mobil çekmece ------------------------------ */

.kk-drawer {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0; transform: translateY(-16px); pointer-events: none;
    transition: opacity var(--kk-transition), transform var(--kk-transition);
}
.kk-drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 782px) { .kk-drawer { display: none; } }
.kk-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--wp--preset--color--stroke-sub); }
.kk-drawer-logo { font-size: 20px; font-weight: 700; color: var(--wp--preset--color--content-strong); text-decoration: none !important; }
.kk-drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 24px; padding: 24px; }
.kk-drawer .kk-search { max-width: none; flex: none; }
.kk-drawer-actions { display: flex; flex-direction: column; gap: 8px; }
.kk-drawer-nav { list-style: none; margin: 0; padding: 0; }
.kk-drawer-group { border-bottom: 1px solid var(--wp--preset--color--stroke-sub); }
.kk-drawer-group summary {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding-block: 16px; list-style: none; cursor: pointer;
    font-size: 16px; font-weight: 500; color: var(--wp--preset--color--content-strong);
}
.kk-drawer-group summary::-webkit-details-marker { display: none; }
.kk-drawer-group summary svg { transition: transform var(--kk-transition); }
.kk-drawer-group[open] summary svg { transform: rotate(180deg); }
.kk-drawer-group ul { list-style: none; margin: 0; padding: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.kk-drawer-group a { font-size: 14px; font-weight: 500; color: var(--wp--preset--color--content-strong); text-decoration: none !important; }
.kk-drawer-group a.is-primary { color: var(--wp--preset--color--primary); }
body.kk-drawer-open { overflow: hidden; }

.kk-header-actions { display: flex; align-items: center; gap: 4px; }
.kk-header-actions .wp-block-buttons { gap: 4px !important; }
.kk-header-actions .wp-block-button__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

/* is-style-outline butonlarının varsayılan hover'ı yok — burada ekliyoruz. */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    color: var(--wp--preset--color--content-main);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--bg-weak);
    border-color: var(--wp--preset--color--stroke-sub);
    color: var(--wp--preset--color--content-main);
}

/* ------------------------------- Search ------------------------------- */

/* Header / çekmecedeki arama kutusu görünümlü buton — tam ekran modalı açar. */
.kk-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    width: 100%;
    max-width: 360px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    border-radius: var(--kk-radius-full);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--wp--preset--color--content-soft);
    cursor: pointer;
    transition: border-color var(--kk-transition), background-color var(--kk-transition);
}
.kk-search-trigger:hover { border-color: var(--wp--preset--color--content-soft); }
.kk-search-trigger:focus-visible { outline: none; border-color: var(--wp--preset--color--stroke-strong); }
.kk-search-trigger-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kk-drawer .kk-search-trigger { max-width: none; flex: none; }
.kk-search-icon { display: flex; flex-shrink: 0; color: var(--wp--preset--color--content-soft); }

.kk-search-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--wp--preset--color--bg-white);
    animation: kkSearchFadeIn 180ms ease-out;
}
@keyframes kkSearchFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
body.kk-search-open { overflow: hidden; }

.kk-search-modal-head { display: flex; align-items: center; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--wp--preset--color--stroke-sub); }
@media (min-width: 782px) { .kk-search-modal-head { padding-block: 24px; } }
.kk-search-field {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
    height: 48px; margin: 0; padding: 0 16px;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    border-radius: var(--kk-radius-full);
    transition: border-color var(--kk-transition);
}
.kk-search-field:focus-within { border-color: var(--wp--preset--color--stroke-strong); }
.kk-search-input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; background: transparent; outline: none; appearance: none;
    font-family: inherit; font-size: 14px; color: var(--wp--preset--color--content-main);
}
.kk-search-input::placeholder { color: var(--wp--preset--color--content-soft); }
.kk-search-input::-webkit-search-cancel-button { display: none; }

.kk-search-modal-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-block: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 782px) { .kk-search-modal-body { padding-block: 40px; } }
.kk-search-heading { margin: 0; font-size: 16px; font-weight: 500; color: var(--wp--preset--color--content-soft); }
.kk-search-list { list-style: none; margin: 0; padding: 0; }
.kk-search-list > li + li { border-top: 1px solid var(--wp--preset--color--stroke-sub); }
.kk-search-row {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 16px;
    color: inherit; text-decoration: none !important;
    transition: background-color var(--kk-transition);
}
a.kk-search-row:hover, a.kk-search-row:focus-visible { outline: none; background: var(--wp--preset--color--bg-weak); }
.kk-search-thumb { position: relative; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; background: var(--wp--preset--color--bg-weak); }
.kk-search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kk-search-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kk-search-title { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--content-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-search-subtitle { font-size: 14px; color: var(--wp--preset--color--content-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-search-price { flex-shrink: 0; font-size: 16px; font-weight: 500; color: var(--wp--preset--color--content-strong); }
.kk-search-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-block: 40px; text-align: center; }
.kk-search-empty strong { font-size: 18px; font-weight: 500; color: var(--wp--preset--color--content-strong); }
.kk-search-empty span { max-width: 384px; font-size: 14px; color: var(--wp--preset--color--content-soft); }

.kk-skeleton { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--wp--preset--color--bg-weak) 25%, var(--wp--preset--color--bg-soft) 50%, var(--wp--preset--color--bg-weak) 75%); background-size: 200% 100%; animation: kkShimmer 1.2s linear infinite; }
.kk-search-row.is-skeleton .kk-search-thumb { border-radius: 0; height: 56px; }
.kk-search-row.is-skeleton .kk-search-text { gap: 6px; }
.kk-search-price-skeleton { width: 64px; flex-shrink: 0; }
@keyframes kkShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------- Buttons -------------------------------- */

.kk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--kk-radius-full);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color var(--kk-transition), border-color var(--kk-transition), color var(--kk-transition);
    border: 1px solid transparent;
    cursor: pointer;
}
.kk-btn-lg { padding: 14px 24px; }
.kk-btn-primary { background: var(--wp--preset--color--primary); color: #fff; }
.kk-btn-primary:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.kk-btn-stroke { background: #fff; border-color: var(--wp--preset--color--stroke-sub); color: var(--wp--preset--color--content-main); }
.kk-btn-stroke:hover { background: var(--wp--preset--color--bg-weak); color: var(--wp--preset--color--content-main); }
.kk-btn-light { background: var(--wp--preset--color--bg-weak); color: var(--wp--preset--color--content-main); }
.kk-btn-light:hover { background: var(--wp--preset--color--bg-soft); color: var(--wp--preset--color--content-main); }

/* ------------------------------ Category grid ---------------------------- */

.kk-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}
@media (min-width: 782px) {
    .kk-category-grid { grid-template-columns: repeat(var(--kk-cols, 4), 1fr); gap: 0; }
}
.kk-category-grid.is-spaced { gap: 16px; }
@media (min-width: 782px) { .kk-category-grid.is-spaced { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1080px) { .kk-category-grid.is-spaced { grid-template-columns: repeat(var(--kk-cols, 4), minmax(0, 1fr)); } }
.kk-category-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--wp--preset--color--bg-soft);
    text-decoration: none !important;
}
.kk-category-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.kk-category-card-img.kk-placeholder { background: var(--wp--preset--color--bg-soft); }
.kk-category-card:hover .kk-category-card-img { transform: scale(1.05); }
.kk-category-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.15) 60%, transparent);
}
.kk-category-card-title {
    position: absolute; left: 24px; right: 24px; bottom: 24px;
    color: #fff; font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
}

/* -------------------------------- Chips ---------------------------------- */

/* Kaydırılabilir kategori şeridi: taşma varsa kenarlar solar ve ilgili tarafta ok butonu çıkar. */
.kk-chip-slider { position: relative; padding-inline: 52px; }
.kk-chip-slider.no-overflow { padding-inline: 0; }
.kk-chip-slider.no-overflow .kk-slider-btn { display: none; }
.kk-chip-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    padding: 8px 4px;
    scrollbar-width: none;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, var(--kk-fade-l, #000) 0, #000 72px, #000 calc(100% - 72px), var(--kk-fade-r, #000) 100%);
            mask-image: linear-gradient(to right, var(--kk-fade-l, #000) 0, #000 72px, #000 calc(100% - 72px), var(--kk-fade-r, #000) 100%);
}
.kk-chip-slider.can-prev .kk-chip-track { --kk-fade-l: transparent; }
.kk-chip-slider.can-next .kk-chip-track { --kk-fade-r: transparent; }
.kk-chip-slider.is-dragging .kk-chip-track { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.kk-chip-slider.is-dragging .kk-chip { pointer-events: none; }
.kk-chip { scroll-snap-align: start; }
.kk-chip img { -webkit-user-drag: none; user-select: none; }
.kk-slider-btn {
    position: absolute;
    top: 40px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    border-radius: var(--kk-radius-full);
    background: var(--wp--preset--color--bg-white);
    color: var(--wp--preset--color--content-strong);
    box-shadow: 0 16px 32px -12px rgba(153, 153, 153, 0.35);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color var(--kk-transition), opacity var(--kk-transition);
}
.kk-slider-btn:hover:not(:disabled) { background: var(--wp--preset--color--bg-weak); }
.kk-slider-btn:disabled { opacity: 0.35; cursor: default; box-shadow: none; }
.kk-slider-btn:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.kk-slider-btn.is-prev { left: 0; }
.kk-slider-btn.is-next { right: 0; }
@media (max-width: 781px) { .kk-chip-slider { padding-inline: 0; } .kk-slider-btn { display: none; } }
.kk-chip-track::-webkit-scrollbar { display: none; }
.kk-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
    text-decoration: none !important;
}
.kk-chip-image {
    display: block;
    width: 64px; height: 64px;
    border-radius: var(--kk-radius-full);
    overflow: hidden;
    background: var(--wp--preset--color--bg-weak);
}
.kk-chip-image img { width: 100%; height: 100%; object-fit: cover; }
.kk-chip-label {
    font-size: 14px; font-weight: 500; text-align: center; line-height: 1.3;
    color: var(--wp--preset--color--content-strong);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kk-chip:hover .kk-chip-label,
.kk-chip.is-active .kk-chip-label { color: var(--wp--preset--color--primary); }
.kk-chip.is-active .kk-chip-image { box-shadow: 0 0 0 2px var(--wp--preset--color--bg-white), 0 0 0 4px var(--wp--preset--color--primary); }

/* ------------------------------ Product cards ----------------------------- */

/* Ürün grid'i: masaüstünde 4'lü, tablette 3'lü, mobilde 2'li. WP'nin grid
   layout'unun ürettiği sabit kolon sayısını responsive hale getiriyoruz. */
.kk-query-row .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 4px !important;
}
@media (min-width: 782px) {
    .kk-query-row .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 40px 4px !important; }
}
@media (min-width: 1080px) {
    .kk-query-row .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.kk-query-row .wp-block-post-template > li { width: 100%; min-width: 0; margin: 0; }
.kk-query-row .wp-block-query-pagination { margin-top: 40px !important; }
@media (min-width: 782px) { .kk-query-row .wp-block-query-pagination { margin-top: 48px !important; } }
.kk-query-row .wp-block-query-pagination-next.is-loading { opacity: 0.6; pointer-events: none; cursor: progress; }
.kk-fade-in { animation: kkFadeIn 400ms ease-out both; }
@keyframes kkFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kk-product-card { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; height: 100%; }
.kk-product-card > * { margin: 0 !important; max-width: none !important; }
.kk-product-card a { text-decoration: none !important; color: inherit; }
.kk-product-card .kk-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--wp--preset--color--bg-weak);
}
/* Görsel, sarmalayıcının (2:3) tamamını kaplar — kart genişledikçe orantılı büyür. */
.kk-product-card .kk-product-image-wrap .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; height: 100%; }
.kk-product-card .kk-product-image-wrap .wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.kk-product-card .kk-product-image-wrap img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 500ms; }
.kk-product-card:hover .kk-product-image-wrap img { transform: scale(1.05); }
.kk-product-card .wp-block-post-title { font-size: 14px !important; font-weight: 500 !important; margin: 0; color: var(--wp--preset--color--content-strong); }
/* Kartın tamamı tıklanabilir olsun (stretched link) — ürün başlığının linki
   tüm kartı (görsel dahil) kaplayacak şekilde genişler. WP'nin "constrained"
   layout'u ara sarmalayıcıya position:relative eklediği için burada iptal
   ediyoruz, aksi halde ::after yalnızca metin kutusunu kaplar. */
.kk-product-card .kk-product-info { position: static !important; }
.kk-product-card .wp-block-post-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Editörde değeri boş ürün alanları (ör. rozetsiz ürün) yer kaplamasın. */
.kk-meta-empty { display: none !important; }
.kk-product-badge {
    position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0 !important;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--wp--preset--color--error); color: #fff;
    font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 4px 8px;
}
.kk-product-price { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--content-strong); }
.kk-product-price .kk-price-original { color: var(--wp--preset--color--content-soft); text-decoration: line-through; font-weight: 500; }
.kk-product-subtitle { font-size: 14px; color: var(--wp--preset--color--content-strong); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------------------- Hero ------------------------------------ */

/* Hero: masaüstünde 7fr/5fr grid, 16:9 oranında yüksek alan. Ana kart
   kolonu %100 doldurur; sağdaki iki kart yüksekliği eşit paylaşır. */
.kk-hero-row { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px !important; margin: 0 !important; }
@media (min-width: 782px) {
    /* aspect-ratio + max-height birlikte kullanılınca geniş ekranda genişlik de daralıyordu;
       yükseklik genişlikten hesaplanıp sınırlanıyor, genişlik her zaman %100. */
    .kk-hero-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); width: 100%; height: min(calc((100vw - 80px) * 9 / 16), 880px); }
}
.kk-hero-row > .wp-block-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex-basis: auto !important; margin: 0 !important; }
.kk-hero-row > .wp-block-column > * { margin: 0 !important; }

.kk-hero-main {
    position: relative; display: flex; flex-direction: column; align-items: center;
    overflow: hidden; text-align: center;
    aspect-ratio: 4 / 5; padding: 24px;
    background: var(--wp--preset--color--primary-lighter);
}
@media (min-width: 782px) { .kk-hero-main { flex: 1 1 auto; aspect-ratio: auto; height: 100%; padding: 32px; } }
.kk-hero-main > * { max-width: none !important; margin: 0 !important; }
.kk-hero-main h2 { position: relative; z-index: 1; max-width: 448px !important; font-size: 24px !important; }
@media (min-width: 782px) { .kk-hero-main h2 { font-size: 32px !important; } }
.kk-hero-main .wp-block-image {
    position: absolute; left: 0; right: 0; bottom: 72px; height: 55%;
    display: flex; justify-content: center; pointer-events: none;
}
@media (min-width: 782px) { .kk-hero-main .wp-block-image { bottom: 80px; height: 65%; } }
.kk-hero-main .wp-block-image img { height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.kk-hero-badge {
    display: none;
    position: absolute;
    bottom: 24px; left: 24px; z-index: 2;
    width: 140px; height: 140px;
    border-radius: var(--kk-radius-full);
    background: var(--wp--preset--color--primary);
    color: #fff;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 16px;
    box-shadow: 0 16px 32px -12px rgba(153, 153, 153, 0.3);
}
.kk-hero-badge span { font-size: 16px; font-weight: 500; line-height: 1.3; }
@media (min-width: 782px) { .kk-hero-badge { display: flex; } }
.kk-hero-cta { position: relative; z-index: 2; margin-top: auto !important; }

.kk-hero-side { position: relative; display: flex; align-items: stretch; overflow: hidden; min-height: 200px; }
@media (min-width: 782px) { .kk-hero-row .kk-hero-side { flex: 1 1 0; min-height: 0; } }
.kk-hero-side-text { display: flex; flex-direction: column; justify-content: space-between !important; align-items: flex-start !important; gap: 16px; padding: 24px; flex: 1; min-width: 0; }
.kk-hero-side-text > * { margin: 0 !important; }
.kk-hero-side-text h3 { font-size: 20px !important; }
@media (min-width: 782px) { .kk-hero-side-text h3 { font-size: 24px !important; } }
/* Görsel mutlak konumlu: kartın yüksekliğini görselin doğal boyutu belirlemesin. */
.kk-hero-side-img { position: relative; flex-shrink: 0; width: 45%; align-self: stretch; }
/* Yan kartlarda ürün fotoğrafı sağ alanı tamamen kaplar. */
.kk-hero-side-img { overflow: hidden; }
.kk-hero-side-img .wp-block-image { position: absolute; inset: 0; margin: 0; }
.kk-hero-side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms; }
.kk-hero-side:hover .kk-hero-side-img img { transform: scale(1.05); }

/* Beyaz buton varyantı (is-style-white). */
.wp-block-button.is-style-white .wp-block-button__link {
    background: var(--wp--preset--color--bg-white);
    color: var(--wp--preset--color--content-main);
    border: 1px solid var(--wp--preset--color--bg-white);
}
.wp-block-button.is-style-white .wp-block-button__link:hover {
    background: var(--wp--preset--color--bg-weak);
    border-color: var(--wp--preset--color--bg-weak);
    color: var(--wp--preset--color--content-main);
}

/* --------------------------------- Toast ----------------------------------- */

.kk-toast { padding: 12px 16px; border-radius: var(--kk-radius-md); font-size: 14px; margin-bottom: 8px; }
.kk-toast-success { background: var(--wp--preset--color--primary-lighter); color: var(--wp--preset--color--primary-darker); }
.kk-toast-error { background: var(--wp--preset--color--error-lighter); color: #801a0f; }

/* ------------------------------ Contact form -------------------------------- */

.kk-contact-form {
    max-width: 600px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    border-radius: var(--kk-radius-lg);
    padding: 32px;
}
.kk-contact-form-head h2 { margin: 0 0 8px; }
.kk-contact-form-head p { margin: 0; color: var(--wp--preset--color--content-soft); }
.kk-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.kk-field input, .kk-field textarea {
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--wp--preset--color--stroke-sub);
    background: transparent;
    padding: 12px 16px;
    border-radius: var(--kk-radius-full);
    outline: none;
}
.kk-field textarea { border-radius: var(--kk-radius-lg); resize: vertical; }
.kk-field input:focus, .kk-field textarea:focus { background: var(--wp--preset--color--bg-weak); border-color: transparent; }
.kk-field-submit { padding-top: 8px; }

/* --------------------------------- Footer ----------------------------------- */

.kk-site-footer { background: #000; color: #fff; text-align: left; }
.kk-site-footer a { color: #fff; }
.kk-site-footer .wp-block-navigation { font-size: 14px; justify-content: flex-start; align-items: flex-start; }
.kk-site-footer .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kk-footer-contact-icon { display: inline-flex; background: rgba(255, 255, 255, 0.1); border-radius: var(--kk-radius-md); padding: 8px; }
.kk-site-footer h3, .kk-site-footer p { text-align: left; }
.kk-site-footer > * { margin-block: 0 !important; }
.kk-footer-top { padding-top: 56px; }
.kk-footer-cols { padding-block: 40px; margin: 0 !important; }
.kk-designby { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.kk-designby a { display: inline-flex; color: var(--wp--preset--color--content-white); opacity: 1; transition: opacity var(--kk-transition); }
.kk-designby a:hover { opacity: 0.7; }
.kk-designby-logo { display: block; height: 16px; width: auto; fill: currentColor; }
.kk-footer-cols .wp-block-navigation { --wp--style--block-gap: 12px; }
.kk-footer-bottom { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--wp--preset--color--bg-surface); }

/* ------------------------------- Contact strip ------------------------------- */

/* Grid ile eşit genişlikte kolonlar — ayraç çizgileri her zaman 1/3 ve 2/3'te,
   yani şerit ortasına göre simetrik durur. */
.kk-contact-strip {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--wp--preset--color--stroke-sub);
}
@media (min-width: 782px) { .kk-contact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kk-contact-strip > .kk-contact-strip-item {
    margin: 0 !important;
    display: flex; flex-direction: column; align-items: center !important; justify-content: center;
    gap: 16px; padding: 32px 24px; text-align: center;
    border-bottom: 1px solid var(--wp--preset--color--stroke-sub);
}
.kk-contact-strip > .kk-contact-strip-item:last-child { border-bottom: none; }
@media (min-width: 782px) {
    .kk-contact-strip > .kk-contact-strip-item { border-bottom: none; border-right: 1px solid var(--wp--preset--color--stroke-sub); }
    .kk-contact-strip > .kk-contact-strip-item:last-child { border-right: none; }
}
.kk-contact-strip-item > .wp-block-group { align-items: center !important; width: 100%; }
.kk-contact-strip-item, .kk-contact-strip-item p { text-align: center; }
.kk-contact-strip-item p { font-weight: 600; margin: 0; }
.kk-contact-strip-item a { text-decoration: none; color: inherit; }
.kk-contact-strip-item a:hover { color: var(--wp--preset--color--primary); }

/* ---------------------------------- Misc ------------------------------------- */

.kk-error-badge {
    display: flex; align-items: center; justify-content: center;
    width: 120px; height: 120px; border-radius: 999px;
    border: 6px solid var(--wp--preset--color--primary);
    color: var(--wp--preset--color--primary);
    margin: 0 auto;
}
@media (min-width: 782px) { .kk-error-badge { width: 160px; height: 160px; border-width: 8px; } }

/* 404: header altındaki görünür alanın tamamını kaplar, içerik yatay + dikey ortalı. */
.kk-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--kk-header-h, 0px));
    min-height: calc(100svh - var(--kk-header-h, 0px));
    padding-block: 40px;
}
.kk-error-content { width: 100%; max-width: 720px; margin: 0 auto !important; align-items: center !important; text-align: center; }
.kk-error-content > * { margin: 0 !important; }

.kk-empty { text-align: center; padding: 80px 0; color: var(--wp--preset--color--content-soft); }

/* ---------------------------- Expandable text --------------------------------- */

.kk-expandable { display: flex; flex-direction: column; gap: 24px; }
.kk-expandable-content { position: relative; font-size: 16px; line-height: 1.5; }
.kk-expandable-content p { margin: 0; }
.kk-expandable:not(.is-expanded) .kk-expandable-content {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kk-expandable:not(.is-expanded) .kk-expandable-content::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 24px;
    background: linear-gradient(to top, var(--wp--preset--color--bg-white), transparent);
}
.kk-expandable-toggle {
    align-self: center;
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--wp--preset--color--content-surface);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.kk-expandable-toggle:hover { color: var(--wp--preset--color--content-strong); }

/* ---------------------------- Ürün sipariş butonları --------------------------- */

/* ------------------------------- Ürün detayı ------------------------------- */

.kk-product-hero-section { padding-block: 24px; }
@media (min-width: 782px) { .kk-product-hero-section { padding-block: 40px; } }
.kk-product-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 782px) { .kk-product-hero { grid-template-columns: minmax(0, 576fr) minmax(0, 608fr); } }
.kk-product-hero > * { margin: 0 !important; min-width: 0; }
.kk-product-gallery .wp-block-post-featured-image { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--wp--preset--color--bg-weak); }
.kk-product-gallery .wp-block-post-featured-image img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }

/* Sağ kolon: kaydırırken header'ın hemen altında sabit kalır. */
.kk-product-summary { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }
@media (min-width: 782px) {
    .kk-product-summary {
        position: sticky;
        top: calc(var(--kk-header-h, 0px) + 16px);
        padding: 40px;
    }
}
.kk-product-summary > *, .kk-product-titles > *, .kk-product-note-box > * { margin: 0 !important; }
.kk-product-code { font-size: 12px; color: var(--wp--preset--color--content-soft); }
.kk-product-titles { display: flex; flex-direction: column; gap: 4px; }
.kk-product-summary .kk-product-subtitle { font-size: 16px; white-space: normal; color: var(--wp--preset--color--content-main); }
.kk-product-name { font-size: 24px !important; line-height: 1.25; font-weight: 500; }
.kk-product-summary .kk-product-price { gap: 16px; font-size: 20px; }
.kk-product-summary .kk-price-original { font-size: 18px; }
.kk-product-note-box { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--wp--preset--color--stroke-sub); }
.kk-product-note-label { font-size: 14px; font-weight: 500; }
.kk-product-note { font-size: 14px; color: var(--wp--preset--color--content-soft); }

.kk-product-actions { display: flex; flex-direction: column; gap: 12px; }
.kk-product-actions .kk-btn { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
.kk-product-delivery {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    padding-top: 8px;
}
.kk-product-delivery-time { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--wp--preset--color--content-strong); }
.kk-product-delivery-sep { display: inline-block; width: 1px; height: 16px; background: var(--wp--preset--color--stroke-sub); }
.kk-product-delivery-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; color: var(--wp--preset--color--primary); }
