/* =====================================================
   Premium Kurumsal Tema — satış odaklı vitrin
   Modern CSS: @layer, custom properties, color-mix(),
   clamp(), container queries, :has(), subgrid, view transitions
   Admin panel renkleri header.php'deki :root üzerinden gelir.
   ===================================================== */

@layer tokens, base, layout, components, utilities;

/* Sayfalar arası yumuşak geçiş (destekleyen tarayıcılarda) */
@view-transition { navigation: auto; }

/* ----------------------------------------------------
   TOKENS
   ---------------------------------------------------- */
@layer tokens {
    :root {
        /* Admin değişkenlerinden türetilen palet */
        --navy: var(--c-primary, #0E2A47);
        --navy-deep: color-mix(in srgb, var(--navy), #000 35%);
        --navy-soft: color-mix(in srgb, var(--navy), #fff 92%);
        --gold: var(--c-secondary, #C9A227);
        --gold-soft: color-mix(in srgb, var(--gold), #fff 85%);
        --wa: var(--c-accent, #25D366);
        --wa-dark: color-mix(in srgb, var(--wa), #000 28%);

        --bg: #f6f8fb;
        --surface: #ffffff;
        --line: color-mix(in srgb, var(--navy), #fff 88%);
        --ink: #16222e;
        --ink-2: color-mix(in srgb, var(--ink), #fff 38%);
        --ink-3: color-mix(in srgb, var(--ink), #fff 60%);

        --ok: #1d9e55;
        --warn: #c07f00;
        --bad: #cc3344;

        /* Akışkan tipografi */
        --fs--1: clamp(.78rem, .74rem + .18vw, .875rem);
        --fs-0: clamp(.9rem, .86rem + .2vw, 1rem);
        --fs-1: clamp(1.05rem, 1rem + .3vw, 1.2rem);
        --fs-2: clamp(1.25rem, 1.15rem + .55vw, 1.55rem);
        --fs-3: clamp(1.55rem, 1.4rem + .9vw, 2.1rem);
        --fs-4: clamp(1.9rem, 1.6rem + 1.6vw, 2.9rem);

        /* Boşluk ölçeği */
        --sp-1: clamp(.25rem, .24rem + .1vw, .375rem);
        --sp-2: clamp(.5rem, .46rem + .2vw, .75rem);
        --sp-3: clamp(.75rem, .7rem + .3vw, 1rem);
        --sp-4: clamp(1rem, .9rem + .5vw, 1.5rem);
        --sp-5: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
        --sp-6: clamp(2.25rem, 1.9rem + 1.8vw, 4rem);

        --radius: calc(var(--btn-radius, 6px) + 4px);
        --radius-sm: var(--btn-radius, 6px);
        --shadow-1: 0 1px 3px rgb(10 31 53 / .07), 0 1px 2px rgb(10 31 53 / .05);
        --shadow-2: 0 10px 30px -8px rgb(10 31 53 / .18);
        --shadow-3: 0 24px 60px -16px rgb(10 31 53 / .28);

        --ease: cubic-bezier(.22, 1, .36, 1);
    }
}

/* ----------------------------------------------------
   BASE
   ---------------------------------------------------- */
@layer base {
    *, *::before, *::after { box-sizing: border-box; }

    html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

    body {
        margin: 0;
        font-family: var(--font-body, system-ui, sans-serif);
        font-size: var(--fs-0);
        line-height: 1.6;
        color: var(--ink);
        background: var(--bg);
    }

    img, picture, svg { max-width: 100%; display: block; }

    a { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
    a:hover { color: color-mix(in srgb, var(--navy), var(--gold) 45%); }

    h1, h2, h3, h4, h5, h6 {
        margin: 0 0 var(--sp-3);
        line-height: 1.25;
        color: var(--navy);
        text-wrap: balance;
        font-weight: 700;
    }
    h1 { font-size: var(--fs-3); }
    h2 { font-size: var(--fs-2); }
    h3 { font-size: var(--fs-1); }
    p { margin: 0 0 var(--sp-3); }

    input, select, textarea, button { font: inherit; color: inherit; }

    table { border-collapse: collapse; width: 100%; }

    ::selection { background: color-mix(in srgb, var(--gold), transparent 60%); }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation: none !important; transition: none !important; }
        html { scroll-behavior: auto; }
    }
}

/* ----------------------------------------------------
   LAYOUT
   ---------------------------------------------------- */
@layer layout {
    .container {
        width: min(100% - clamp(2rem, 5vw, 3rem), 1280px);
        margin-inline: auto;
    }

    main { min-height: 55vh; }

    /* --- Topbar --- */
    .topbar {
        background: var(--c-topbar-bg, var(--navy-deep));
        color: var(--c-topbar-text, #cfd9e4);
        font-size: var(--fs--1);
        padding-block: .45rem;
    }
    .topbar .container { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
    .topbar a { color: inherit; opacity: .92; display: inline-flex; align-items: center; gap: .35rem; }
    .topbar a:hover { opacity: 1; color: var(--gold); }
    .topbar-right { margin-inline-start: auto; display: inline-flex; align-items: center; gap: var(--sp-3); }
    @media (max-width: 767px) { .topbar .hide-sm { display: none; } }

    /* --- Header --- */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--c-header-bg, #fff);
        box-shadow: var(--shadow-1);
    }
    .header-main {
        display: flex;
        align-items: center;
        gap: var(--sp-4);
        padding-block: var(--sp-4);
        transition: padding .25s var(--ease);
    }
    .site-header.scrolled .header-main { padding-block: var(--sp-2); }

    .site-logo { flex-shrink: 0; display: inline-flex; align-items: center; }
    .site-logo img { max-height: 52px; width: auto; }
    .site-logo-text {
        font-size: var(--fs-2);
        font-weight: 800;
        letter-spacing: -.02em;
        color: var(--navy);
    }
    .site-logo-text::first-letter { color: var(--gold); }

    /* Arama */
    .search-form { flex: 1 1 auto; max-width: 640px; margin-inline: auto; }
    .search-form .search-wrap {
        display: flex;
        border: 2px solid var(--line);
        border-radius: 999px;
        background: var(--bg);
        overflow: hidden;
        transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    }
    .search-form .search-wrap:focus-within {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold), transparent 82%);
        background: #fff;
    }
    .search-form input {
        flex: 1;
        border: 0;
        background: transparent;
        padding: .6rem 1.1rem;
        outline: none;
        min-width: 0;
    }
    .btn-search {
        border: 0;
        background: var(--navy);
        color: #fff;
        padding-inline: 1.15rem;
        cursor: pointer;
        transition: background .2s var(--ease);
    }
    .btn-search:hover { background: var(--gold); color: var(--navy-deep); }

    /* --- Ana menü --- */
    .main-nav { border-top: 1px solid var(--line); background: var(--c-header-bg, #fff); }
    .main-nav .container { display: flex; align-items: stretch; }
    .nav-links { display: flex; list-style: none; margin: 0; padding: 0; }
    .nav-links a {
        display: inline-flex;
        align-items: center;
        height: 100%;
        padding: .8rem 1.1rem;
        font-weight: 600;
        font-size: var(--fs--1);
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--ink-2);
        border-bottom: 2px solid transparent;
    }
    .nav-links a:hover { color: var(--navy); border-bottom-color: var(--gold); }

    /* Kategori mega menü */
    .cat-dropdown { position: relative; }
    .cat-dropdown-btn {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        height: 100%;
        border: 0;
        cursor: pointer;
        background: var(--navy);
        color: #fff;
        font-weight: 700;
        font-size: var(--fs--1);
        padding: .8rem 1.3rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .cat-dropdown-btn:hover { background: var(--navy-deep); }
    .cat-dropdown-menu {
        position: absolute;
        top: 100%;
        inset-inline-start: 0;
        min-width: 300px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-3);
        opacity: 0;
        visibility: hidden;
        translate: 0 8px;
        transition: opacity .18s var(--ease), translate .18s var(--ease), visibility .18s;
        z-index: 60;
        max-height: min(70vh, 620px);
        overflow-y: auto;
    }
    .cat-dropdown:hover .cat-dropdown-menu,
    .cat-dropdown:focus-within .cat-dropdown-menu { opacity: 1; visibility: visible; translate: 0 0; }
    .cat-item { position: relative; }
    .cat-item > a {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .65rem 1.1rem;
        font-size: var(--fs--1);
        font-weight: 500;
        border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 40%);
    }
    .cat-item > a:hover { background: var(--navy-soft); color: var(--navy); padding-inline-start: 1.35rem; }
    .cat-item > a .bi-chevron-right { margin-inline-start: auto; font-size: .7em; opacity: .5; }
    .cat-submenu {
        position: absolute;
        top: 0;
        inset-inline-start: 100%;
        min-width: 260px;
        max-height: 60vh;
        overflow-y: auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 0 var(--radius) var(--radius) 0;
        box-shadow: var(--shadow-3);
        display: none;
    }
    .cat-item:hover .cat-submenu { display: block; }
    .cat-submenu a {
        display: block;
        padding: .55rem 1.1rem;
        font-size: var(--fs--1);
        border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 55%);
    }
    .cat-submenu a:hover { background: var(--navy-soft); }

    /* Mobil menü */
    .menu-toggle {
        display: none;
        margin-inline-start: auto;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: var(--radius-sm);
        padding: .4rem .7rem;
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
        color: var(--navy);
    }
    .mobile-nav {
        display: none;
        border-top: 1px solid var(--line);
        background: #fff;
        max-height: 70vh;
        overflow-y: auto;
    }
    .mobile-nav.open { display: block; }
    .mobile-nav a { display: block; padding: .7rem 1.2rem; border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 40%); font-weight: 500; }
    .mobile-nav .mn-heading { display: block; padding: .9rem 1.2rem .3rem; font-size: var(--fs--1); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

    @media (max-width: 991px) {
        .main-nav { display: none; }
        .menu-toggle { display: inline-flex; }
        .search-form { order: 3; flex-basis: 100%; }
        .header-main { flex-wrap: wrap; gap: var(--sp-3); }
        .header-wa-btn { display: none; }
    }

    /* --- Mobil sabit aksiyon çubuğu --- */
    .mobile-action-bar {
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 120;
        display: none;
        grid-template-columns: 1fr 1.4fr;
        gap: 1px;
        background: var(--line);
        box-shadow: 0 -6px 24px rgb(10 31 53 / .18);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-action-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: .95rem .5rem;
        font-weight: 700;
        font-size: var(--fs-0);
    }
    .mobile-action-bar .mab-call { background: var(--navy); color: #fff; }
    .mobile-action-bar .mab-wa { background: var(--wa-dark); color: #fff; }
    @media (max-width: 991px) {
        .mobile-action-bar { display: grid; }
        body { padding-bottom: 3.6rem; }
        .wa-bubble { display: none !important; }
    }

    /* --- Footer --- */
    .site-footer {
        margin-top: var(--sp-6);
        background: var(--c-footer-bg, #0A1F35);
        color: var(--c-footer-text, #c9d3dc);
    }
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--sp-5);
        padding-block: var(--sp-6) var(--sp-5);
    }
    .site-footer h5, .site-footer h6 { color: #fff; margin-bottom: var(--sp-3); font-size: var(--fs-1); }
    .site-footer h6::after, .site-footer h5::after {
        content: "";
        display: block;
        width: 2.2rem;
        height: 2px;
        margin-top: .5rem;
        background: var(--gold);
    }
    .site-footer a { color: inherit; opacity: .88; }
    .site-footer a:hover { color: var(--gold); opacity: 1; }
    .footer-contact, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: var(--fs--1); }
    .footer-contact li { display: flex; gap: .6rem; align-items: baseline; }
    .footer-contact .bi { color: var(--gold); }
    .footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
    .footer-links a::before { content: "›"; color: var(--gold); }
    .footer-social { display: flex; gap: .6rem; }
    .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 50%;
        background: rgb(255 255 255 / .08);
        transition: background .2s var(--ease), translate .2s var(--ease);
    }
    .footer-social a:hover { background: var(--gold); color: var(--navy-deep); translate: 0 -3px; }
    .footer-bottom {
        border-top: 1px solid rgb(255 255 255 / .1);
        padding-block: var(--sp-3);
        font-size: var(--fs--1);
        display: flex;
        flex-wrap: wrap;
        gap: var(--sp-2);
        align-items: center;
        opacity: .8;
    }
}

/* ----------------------------------------------------
   COMPONENTS
   ---------------------------------------------------- */
@layer components {

    /* --- Butonlar --- */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        border: 0;
        cursor: pointer;
        border-radius: var(--radius-sm);
        padding: .62rem 1.3rem;
        font-weight: 700;
        font-size: var(--fs-0);
        line-height: 1.3;
        transition: background .2s var(--ease), box-shadow .2s var(--ease), translate .15s var(--ease), color .2s var(--ease);
        text-align: center;
    }
    .btn:active { translate: 0 1px; }

    .btn-theme { background: var(--c-button, var(--navy)); color: var(--c-button-text, #fff); }
    .btn-theme:hover { background: color-mix(in srgb, var(--c-button, var(--navy)), #000 15%); color: var(--c-button-text, #fff); box-shadow: var(--shadow-2); }

    .btn-gold { background: var(--gold); color: var(--navy-deep); }
    .btn-gold:hover { background: color-mix(in srgb, var(--gold), #fff 15%); color: var(--navy-deep); box-shadow: var(--shadow-2); }

    .btn-whatsapp, .btn-quote, .btn-quote-lg {
        background: var(--wa-dark);
        color: #fff;
    }
    .btn-whatsapp:hover, .btn-quote:hover, .btn-quote-lg:hover {
        background: color-mix(in srgb, var(--wa-dark), #000 12%);
        color: #fff;
        box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--wa-dark), transparent 30%);
    }
    .btn-quote-lg { padding: .85rem 1.8rem; font-size: var(--fs-1); }

    .btn-call {
        background: transparent;
        color: var(--navy);
        border: 2px solid var(--navy);
    }
    .btn-call:hover { background: var(--navy); color: #fff; }

    .btn-detail {
        background: var(--navy-soft);
        color: var(--navy);
        font-size: var(--fs--1);
        padding: .5rem .9rem;
    }
    .btn-detail:hover { background: color-mix(in srgb, var(--navy-soft), var(--navy) 10%); color: var(--navy); }

    .btn-outline-light { background: transparent; color: #fff; border: 2px solid rgb(255 255 255 / .5); }
    .btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .1); color: #fff; }

    /* --- Bölüm başlığı --- */
    .section-head {
        display: flex;
        align-items: baseline;
        gap: var(--sp-3);
        margin-block: var(--sp-6) var(--sp-4);
    }
    .section-title {
        font-size: var(--fs-2);
        margin: 0;
        position: relative;
        padding-bottom: .45rem;
    }
    .section-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        inset-inline-start: 0;
        width: 3rem;
        height: 3px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold), transparent 60%));
    }
    .section-link { margin-inline-start: auto; font-size: var(--fs--1); font-weight: 600; white-space: nowrap; }
    .section-link:hover { color: var(--gold); }

    /* --- Hero --- */
    .hero {
        background:
            radial-gradient(80rem 40rem at 85% -20%, color-mix(in srgb, var(--gold), transparent 82%), transparent 60%),
            linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, color-mix(in srgb, var(--navy), var(--gold) 12%));
        color: #fff;
        padding-block: var(--sp-6);
    }
    .hero-inner { max-width: 720px; }
    .hero-kicker {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        font-size: var(--fs--1);
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: var(--sp-3);
    }
    .hero-kicker::before { content: ""; width: 2rem; height: 2px; background: var(--gold); }
    .hero h1 { color: #fff; font-size: var(--fs-4); font-weight: 800; letter-spacing: -.02em; }
    .hero p { color: rgb(255 255 255 / .82); font-size: var(--fs-1); max-width: 56ch; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        gap: var(--sp-5);
        margin-top: var(--sp-5);
        padding-top: var(--sp-4);
        border-top: 1px solid rgb(255 255 255 / .16);
    }
    .hero-stat strong { display: block; font-size: var(--fs-3); font-weight: 800; color: var(--gold); line-height: 1.1; }
    .hero-stat span { font-size: var(--fs--1); color: rgb(255 255 255 / .75); }

    /* --- Slider (scroll-snap) --- */
    .home-slider { position: relative; }
    .hs-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .hs-track::-webkit-scrollbar { display: none; }
    .hs-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
    .hs-slide img { width: 100%; max-height: 520px; object-fit: cover; }
    .hs-caption {
        position: absolute;
        inset-inline-start: 0;
        bottom: 0;
        width: 100%;
        padding: var(--sp-6) var(--sp-5) var(--sp-5);
        background: linear-gradient(transparent, rgb(10 31 53 / .82));
        color: #fff;
    }
    .hs-caption h2 { color: #fff; font-size: var(--fs-3); margin-bottom: var(--sp-2); }
    .hs-caption p { color: rgb(255 255 255 / .85); margin-bottom: var(--sp-3); }
    .hs-dots {
        position: absolute;
        bottom: .9rem;
        inset-inline-end: 1.2rem;
        display: flex;
        gap: .45rem;
        z-index: 5;
    }
    .hs-dots button {
        width: .7rem; height: .7rem;
        border-radius: 50%;
        border: 0;
        cursor: pointer;
        background: rgb(255 255 255 / .45);
        transition: background .2s, scale .2s;
    }
    .hs-dots button.active { background: var(--gold); scale: 1.25; }

    /* --- Avantaj / bilgi kutuları --- */
    .info-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: var(--sp-3);
        margin-block: var(--sp-5);
    }
    .info-box {
        display: flex;
        align-items: center;
        gap: var(--sp-3);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: var(--sp-4);
        box-shadow: var(--shadow-1);
        transition: box-shadow .25s var(--ease), translate .25s var(--ease);
    }
    .info-box:hover { box-shadow: var(--shadow-2); translate: 0 -3px; }
    .info-box > .bi {
        font-size: 1.9rem;
        color: var(--gold);
        background: var(--navy);
        border-radius: var(--radius-sm);
        width: 3.4rem;
        height: 3.4rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .info-box strong { display: block; color: var(--navy); }
    .info-box span { font-size: var(--fs--1); color: var(--ink-3); }

    /* --- Kategori vitrini --- */
    .cat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--sp-3);
    }
    @media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
    .category-tile {
        position: relative;
        display: block;
        border-radius: var(--radius);
        overflow: hidden;
        aspect-ratio: 4 / 3;
        background: var(--navy);
        box-shadow: var(--shadow-1);
    }
    .category-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: scale .5s var(--ease), opacity .3s;
        opacity: .92;
    }
    .category-tile:hover img { scale: 1.07; opacity: 1; }
    .category-tile-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        font-size: 2.6rem;
        color: var(--gold);
    }
    .category-tile-name {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        padding: var(--sp-4) var(--sp-3) var(--sp-3);
        background: linear-gradient(transparent, rgb(10 31 53 / .88));
        color: #fff;
        font-weight: 700;
        font-size: var(--fs-0);
        display: flex;
        align-items: center;
        gap: .4rem;
    }
    .category-tile-name::after { content: "→"; margin-inline-start: auto; color: var(--gold); transition: translate .2s var(--ease); }
    .category-tile:hover .category-tile-name::after { translate: 4px 0; }

    /* icon_bar & mosaic widget varyantları */
    .cat-bar { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-2); }
    .cat-bar a { flex: 0 0 auto; text-align: center; width: 6.2rem; font-size: var(--fs--1); font-weight: 600; }
    .cat-bar .cb-icon {
        display: flex; align-items: center; justify-content: center;
        width: 4.6rem; height: 4.6rem; margin: 0 auto .4rem;
        border-radius: 50%;
        background: var(--surface);
        border: 2px solid var(--line);
        overflow: hidden;
        font-size: 1.5rem;
        color: var(--navy);
        transition: border-color .2s;
    }
    .cat-bar a:hover .cb-icon { border-color: var(--gold); }
    .cat-bar .cb-icon img { width: 100%; height: 100%; object-fit: cover; }
    .cat-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
    .cm-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--navy); display: block; }
    .cm-card img { width: 100%; height: 100%; object-fit: cover; }
    .cm-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold); font-size: 2.4rem; }
    .cm-title { position: absolute; inset-inline: 0; bottom: 0; padding: var(--sp-3); color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(10 31 53 / .85)); }

    /* --- Ürün ızgarası + kart (container query) --- */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
        grid-auto-rows: 1fr;
        gap: var(--sp-3);
    }
    @media (max-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); } }

    .pc-wrap { container-type: inline-size; display: grid; }

    .product-card {
        display: flex;
        flex-direction: column;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        overflow: hidden;
        box-shadow: var(--shadow-1);
        transition: box-shadow .25s var(--ease), translate .25s var(--ease), border-color .25s;
        height: 100%;
    }
    .product-card:hover { box-shadow: var(--shadow-2); translate: 0 -4px; border-color: color-mix(in srgb, var(--gold), transparent 40%); }

    .product-card-img { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
    .product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: scale .45s var(--ease); }
    .product-card:hover .product-card-img img { scale: 1.05; }
    .no-image {
        display: flex; align-items: center; justify-content: center;
        height: 100%; min-height: 8rem;
        color: var(--ink-3); font-size: 2.2rem;
        background: var(--navy-soft);
    }

    .product-card-body {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: var(--sp-3);
        flex: 1;
    }
    .product-card-title {
        font-weight: 600;
        font-size: var(--fs--1);
        line-height: 1.4;
        color: var(--ink);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.8em;
    }
    .product-card-title:hover { color: var(--navy); }
    .product-card-price { font-size: var(--fs-1); font-weight: 800; color: var(--navy); }
    .product-card-actions { display: grid; gap: .45rem; margin-top: auto; }
    .product-card-actions .btn-quote { width: 100%; font-size: var(--fs--1); padding-block: .55rem; }
    .product-card-actions .btn-detail { width: 100%; }

    /* Geniş kart alanında butonlar yan yana (container query) */
    @container (min-width: 300px) {
        .product-card-actions { grid-template-columns: 1.5fr 1fr; }
    }

    /* --- Stok rozetleri --- */
    .stock-badge {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-size: var(--fs--1);
        font-weight: 700;
        padding: .2rem .7rem;
        border-radius: 999px;
    }
    .stock-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
    .stock-in_stock { color: var(--ok); background: color-mix(in srgb, var(--ok), transparent 90%); }
    .stock-on_order { color: var(--warn); background: color-mix(in srgb, var(--warn), transparent 90%); }
    .stock-out_of_stock { color: var(--bad); background: color-mix(in srgb, var(--bad), transparent 90%); }

    /* --- Ürün detay --- */
    .product-layout {
        display: grid;
        gap: var(--sp-5);
        margin-top: var(--sp-4);
    }
    @media (min-width: 992px) {
        .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
        .buy-box { position: sticky; top: 96px; }
    }

    .product-gallery-main {
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        cursor: zoom-in;
    }
    .product-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
    .product-gallery-thumbs {
        display: flex;
        gap: .5rem;
        margin-top: .6rem;
        overflow-x: auto;
        padding-bottom: .25rem;
    }
    .product-gallery-thumbs button {
        flex: 0 0 4.6rem;
        aspect-ratio: 1;
        border: 2px solid var(--line);
        border-radius: var(--radius-sm);
        background: #fff;
        padding: 2px;
        cursor: pointer;
        overflow: hidden;
        transition: border-color .2s;
    }
    .product-gallery-thumbs button.active,
    .product-gallery-thumbs button:hover { border-color: var(--gold); }
    .product-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

    .buy-box {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: var(--sp-5);
        box-shadow: var(--shadow-1);
    }
    .product-title { font-size: var(--fs-3); margin-bottom: var(--sp-2); }
    .product-meta {
        display: flex;
        flex-wrap: wrap;
        gap: var(--sp-3);
        align-items: center;
        font-size: var(--fs--1);
        color: var(--ink-2);
        padding-bottom: var(--sp-3);
        margin-bottom: var(--sp-3);
        border-bottom: 1px solid var(--line);
    }
    .product-short { color: var(--ink-2); }
    .product-price {
        font-size: var(--fs-3);
        font-weight: 800;
        color: var(--navy);
        margin-block: var(--sp-3);
    }
    .product-cta { display: grid; gap: .6rem; margin-block: var(--sp-4); }
    @media (min-width: 560px) { .product-cta { grid-template-columns: 1.6fr 1fr; } }

    .trust-list {
        list-style: none;
        margin: var(--sp-4) 0 0;
        padding: var(--sp-3) 0 0;
        border-top: 1px dashed var(--line);
        display: grid;
        gap: .55rem;
        font-size: var(--fs--1);
        color: var(--ink-2);
    }
    .trust-list .bi { color: var(--gold); margin-inline-end: .45rem; }

    .product-section { margin-top: var(--sp-6); }
    .specs-table th, .specs-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--line); text-align: start; font-size: var(--fs--1); }
    .specs-table th { width: 38%; color: var(--navy); background: var(--navy-soft); font-weight: 600; }

    /* --- Breadcrumb --- */
    .breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .45rem;
        font-size: var(--fs--1);
        color: var(--ink-3);
        padding-block: var(--sp-3);
    }
    .breadcrumbs .bi { font-size: .65em; opacity: .6; }
    .breadcrumbs span { color: var(--ink-2); }

    /* --- Liste sayfaları --- */
    .page-title { margin-bottom: var(--sp-3); }
    .listing-bar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--sp-2);
        margin-block: var(--sp-3) var(--sp-4);
    }
    .listing-count { font-size: var(--fs--1); color: var(--ink-3); }
    .listing-bar form { margin-inline-start: auto; }

    .subcat-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: var(--sp-3); }
    .subcat-strip a {
        padding: .4rem 1rem;
        border-radius: 999px;
        background: var(--surface);
        border: 1px solid var(--line);
        font-size: var(--fs--1);
        font-weight: 600;
        white-space: nowrap;
        transition: all .2s var(--ease);
    }
    .subcat-strip a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
    /* Mobilde tek satır, yatay kaydırma — ürünler ekranın üstünde kalsın */
    @media (max-width: 767px) {
        .subcat-strip {
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            margin-inline: calc((100vw - 100%) / -2);
            padding-inline: calc((100vw - 100%) / 2);
        }
        .subcat-strip::-webkit-scrollbar { display: none; }
        .page-title { font-size: var(--fs-2); margin-bottom: var(--sp-2); }
        .breadcrumbs { padding-block: var(--sp-2); }
        .listing-bar { margin-block: var(--sp-2) var(--sp-3); }
    }

    /* Kategori SEO metni — ürünlerin altında, sade */
    .category-seo-text {
        margin-top: var(--sp-6);
        padding-top: var(--sp-4);
        border-top: 1px solid var(--line);
        font-size: var(--fs--1);
        color: var(--ink-3);
        max-width: 85ch;
    }

    /* --- CTA bandı --- */
    .cta-band {
        margin-top: var(--sp-6);
        border-radius: var(--radius);
        background:
            radial-gradient(50rem 20rem at 110% 120%, color-mix(in srgb, var(--gold), transparent 75%), transparent 60%),
            linear-gradient(120deg, var(--navy-deep), var(--navy));
        color: #fff;
        padding: var(--sp-6) var(--sp-5);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--sp-4);
    }
    .cta-band h2 { color: #fff; margin: 0 0 .35rem; font-size: var(--fs-2); }
    .cta-band p { margin: 0; color: rgb(255 255 255 / .8); }
    .cta-band-actions { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: var(--sp-2); }

    /* --- Formlar --- */
    .form-label { display: block; font-weight: 600; font-size: var(--fs--1); margin-bottom: .35rem; color: var(--navy); }
    .form-control, .form-select {
        width: 100%;
        border: 1.5px solid var(--line);
        border-radius: var(--radius-sm);
        background: #fff;
        padding: .6rem .9rem;
        transition: border-color .2s, box-shadow .2s;
    }
    .form-control:focus, .form-select:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold), transparent 84%);
    }
    .form-select { width: auto; cursor: pointer; }
    textarea.form-control { resize: vertical; min-height: 8rem; }
    .form-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
    @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

    .card-panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: var(--sp-5);
        box-shadow: var(--shadow-1);
    }

    /* --- İletişim --- */
    .contact-layout { display: grid; gap: var(--sp-5); }
    @media (min-width: 992px) { .contact-layout { grid-template-columns: 2fr 3fr; align-items: start; } }
    .contact-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: var(--sp-3); }
    .contact-list li {
        display: flex;
        gap: var(--sp-3);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: var(--sp-3) var(--sp-4);
    }
    .contact-list .bi {
        font-size: 1.3rem;
        color: var(--gold);
        background: var(--navy);
        width: 2.8rem; height: 2.8rem;
        border-radius: var(--radius-sm);
        display: inline-flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .contact-list strong { display: block; color: var(--navy); font-size: var(--fs--1); }
    .contact-list span { font-size: var(--fs--1); color: var(--ink-2); }

    /* --- Uyarılar --- */
    .alert { border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); font-size: var(--fs--1); border: 1px solid transparent; }
    .alert-success { background: color-mix(in srgb, var(--ok), #fff 90%); color: color-mix(in srgb, var(--ok), #000 25%); border-color: color-mix(in srgb, var(--ok), #fff 70%); }
    .alert-danger { background: color-mix(in srgb, var(--bad), #fff 91%); color: color-mix(in srgb, var(--bad), #000 20%); border-color: color-mix(in srgb, var(--bad), #fff 70%); }
    .alert-light { background: var(--surface); border-color: var(--line); color: var(--ink-2); text-align: center; padding-block: var(--sp-5); }

    /* --- Sayfalama (PHP pagination() çıktısı) --- */
    .pagination { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
    .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.5rem;
        height: 2.5rem;
        padding-inline: .6rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: var(--surface);
        font-weight: 600;
        font-size: var(--fs--1);
        transition: all .18s var(--ease);
    }
    .page-item { list-style: none; }
    .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
    .page-item.disabled .page-link { opacity: .5; pointer-events: none; }
    .page-link:hover { border-color: var(--gold); color: var(--navy); }

    /* --- WhatsApp balonu --- */
    .wa-bubble {
        position: fixed;
        bottom: 1.4rem;
        inset-inline-end: 1.4rem;
        z-index: 110;
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        background: var(--wa-dark);
        color: #fff;
        font-weight: 700;
        padding: .75rem 1.3rem;
        border-radius: 999px;
        box-shadow: 0 12px 30px -6px color-mix(in srgb, var(--wa-dark), transparent 25%);
        transition: translate .2s var(--ease), box-shadow .2s;
    }
    .wa-bubble:hover { color: #fff; translate: 0 -3px; box-shadow: 0 16px 36px -6px color-mix(in srgb, var(--wa-dark), transparent 15%); }
    .wa-bubble .bi { font-size: 1.35rem; }

    /* --- Lightbox --- */
    .lightbox {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgb(10 31 53 / .92);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--sp-4);
        cursor: zoom-out;
        animation: lb-in .2s var(--ease);
    }
    .lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: var(--radius-sm); }
    @keyframes lb-in { from { opacity: 0; } }

    /* --- İçerik HTML (WP kaynaklı açıklamalar) --- */
    .content-html { max-width: 85ch; }
    .content-html img { border-radius: var(--radius-sm); height: auto; }
    .content-html table { border: 1px solid var(--line); }
    .content-html td, .content-html th { border: 1px solid var(--line); padding: .5rem .8rem; }
    .content-html li { margin-bottom: .4rem; }

    /* --- 404 --- */
    .error-page { text-align: center; padding-block: var(--sp-6); }
    .error-code {
        font-size: clamp(5rem, 14vw, 9rem);
        font-weight: 800;
        line-height: 1;
        background: linear-gradient(135deg, var(--navy), var(--gold));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .error-page .search-form { max-width: 430px; margin: var(--sp-4) auto; }

    /* Kart görünüm animasyonu (scroll-driven, destekleyen tarayıcılarda) */
    @supports (animation-timeline: view()) {
        .product-card, .category-tile, .info-box {
            animation: rise-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 32%;
        }
        @keyframes rise-in {
            from { opacity: .2; translate: 0 18px; }
            to { opacity: 1; translate: 0 0; }
        }
    }
}

/* ----------------------------------------------------
   UTILITIES
   ---------------------------------------------------- */
@layer utilities {
    .text-muted { color: var(--ink-3); }
    .small { font-size: var(--fs--1); }
    .mt-2 { margin-top: var(--sp-2); }
    .mb-0 { margin-bottom: 0; }
    .py-4 { padding-block: var(--sp-4); }
    .py-5 { padding-block: var(--sp-5); }
    .text-center { text-align: center; }
    .justify-content-center { justify-content: center; }

    /* Responsive gizleme kuralları — utilities son katman olduğu için
       components katmanındaki display kurallarını güvenle ezer */
    @media (max-width: 991px) {
        .header-wa-btn { display: none; }
    }
}
