/* ==========================================================================
   Empoli Plastik - Uygulama Stilleri
   Modern, bağımlılıksız (Bootstrap'sız) sürüm.
   ========================================================================== */

/* ----------------------------- Tasarım değişkenleri ---------------------- */
:root {
    --primary:      #bd0101;
    --primary-soft: rgba(189, 1, 1, .85);
    --dark:         #354d57;
    --slate:        #2E3944;
    --muted:        #5c6c75;
    --line:         #d6dee8;
    --line-soft:    #eaeaea;
    /* Kart kenarlıkları: hafif mat siyah (eski tasarımdaki gibi) */
    --border-ink:   rgba(18, 26, 32, .55);
    --bg:           #ffffff;
    --header-h:     60px;
    --footer-h:     55px;
    --radius:       12px;
    --radius-lg:    25px;
    --shadow-sm:    0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md:    2px 1px 5px 2px rgba(0, 0, 0, .18);
    --shadow-lg:    0 10px 40px rgba(0, 0, 0, .25);
    --transition:   .15s ease;
}

/* --------------------------------- Reset --------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #1c1c1c;
    background: var(--bg);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    cursor: default;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .4em;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: font-weight var(--transition), color var(--transition);
}

img {
    border: 0;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

hr {
    border: 0;
    border-top: 1px solid var(--line-soft);
}

/* Özel kaydırma çubuğu */
.scroll-area {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #596971 var(--line-soft);
}

.scroll-area::-webkit-scrollbar {
    width: 10px;
    background-color: var(--line-soft);
    border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb {
    background-color: #596971;
    border-radius: 10px;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
    background-color: var(--slate);
}

/* ================================ HEADER ================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 30, 40, .06);
    z-index: 1002;
}

.header-inner {
    display: flex;
    align-items: stretch;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 8px;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: flex-end;
    flex: 0 0 15%;
    max-width: 15%;
    padding-bottom: 5px;
}

.logo-link img {
    width: 12vh;
    max-width: 130px;
    display: block;
    transition: transform var(--transition);
}

.logo-link:hover img {
    transform: scale(1.04);
}

/* --- Arama --- */
.header-search {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

/* Modern, hap (pill) biçimli arama alanı */
.search-form {
    display: flex;
    align-items: center;
    gap: 9px;
    width: clamp(220px, 22vw, 340px);
    padding: 8px 14px;
    background: #f5f7f9;
    border: 1px solid #e4eaf0;
    border-radius: 999px;
    transition: width .24s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.header-search.is-active .search-form {
    width: clamp(300px, 32vw, 480px);
    background: #fff;
    border-color: rgba(189, 1, 1, .5);
    box-shadow: 0 0 0 4px rgba(189, 1, 1, .09), 0 10px 24px -12px rgba(15, 30, 40, .45);
}

.search-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #98a5ae;
    transition: color .18s ease;
}

.header-search.is-active .search-icon {
    color: var(--primary);
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    font-size: 13.5px;
    background: transparent;
    color: #1d2c34;
}

.search-input::placeholder {
    color: #9aa7b0;
}

/* Kırmızı halka hap (pill) üzerinde çizilir; içteki input ayrıca çizilmez */
.search-input:focus,
.search-input:focus-visible,
.search-input:active {
    outline: none;
    box-shadow: none;
}

.search-clear {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: background .15s ease;
}

.search-clear:hover {
    background: #fdecec;
}

.search-clear svg {
    fill: #b3bec6;
    transition: transform var(--transition), fill var(--transition);
}

.search-clear:hover svg {
    fill: var(--primary);
    transform: scale(1.1);
}

/* Sonuç paneli: ekran çözünürlüğüne göre ölçeklenen, ferah bir kart */
.search-results {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(480px, 54vw, 780px);
    max-width: calc(100vw - 32px);
    max-height: min(74vh, 680px);
    margin: 0;
    padding: 0;
    list-style: none;
    /* Panel kendisi kaymaz; iç bölgeler (ürün listesi) kayar */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 30, 40, .08);
    border-radius: 18px;
    box-shadow: 0 30px 70px -22px rgba(6, 15, 20, .5), 0 4px 16px rgba(6, 15, 20, .1);
    font-size: 13px;
    font-weight: 400;
    color: #1d2c34;
    z-index: 1200;
    scrollbar-width: thin;
    scrollbar-color: #c2ccd3 transparent;
    animation: dropIn .18s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity: 1; transform: translateX(-50%); }
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c2ccd3;
    border-radius: 8px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8b5bd;
}

.search-results li {
    list-style: none;
}

.sr-head {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    font-size: 12px;
    color: #7d8a93;
    background: #f7f9fb;
    border-bottom: 1px solid rgba(15, 30, 40, .08);
    border-radius: 18px 18px 0 0;
}

.sr-head__logo {
    height: 22px;
}

.sr-head__text {
    white-space: nowrap;
}

.sr-head__text b {
    font-weight: 700;
    color: #1d2c34;
}

.sr-head__sep {
    color: var(--primary);
    font-weight: 700;
}

.sr-head__close {
    margin-left: auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #97a3ab;
    transition: background .15s ease, color .15s ease;
}

.sr-head__close:hover {
    background: #fdecec;
    color: var(--primary);
}

.sr-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.sr-empty h4 {
    font-size: 18px;
    color: #1d2c34;
}

.sr-empty p {
    font-size: 13px;
    font-weight: 400;
    color: #7d8a93;
}

.sr-empty__support {
    margin-top: 26px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.sr-empty__support a {
    font-weight: 500;
    color: #1d2c34;
}

.sr-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 14px 16px;
}

.sr-serie {
    /* Seri özeti sabit kalır (kaymaz) */
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-areas:
        "title title"
        "media desc";
    gap: 10px 16px;
    padding: 16px 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 30, 40, .07);
    border-radius: 14px;
    transition: background .15s ease;
}

.sr-serie:hover {
    background: #fdf6f6;
}

.sr-serie:hover .sr-serie__title {
    color: var(--primary);
}

.sr-serie__title {
    grid-area: title;
    font-size: 16px;
    font-weight: 700;
    color: #1d2c34;
}

.sr-serie__media {
    grid-area: media;
}

.sr-serie__media img {
    width: 120px;
    height: 120px;
    padding: 5px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
}

.sr-serie__desc {
    grid-area: desc;
    font-size: 12.5px;
    line-height: 1.55;
    color: #4d5d66;
    max-height: 120px;
    overflow: hidden;
}

/* Yalnızca ürün listesi kendi içinde kayar */
.sr-list,
.sr-list--series {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c2ccd3 transparent;
}

.sr-list::-webkit-scrollbar,
.sr-list--series::-webkit-scrollbar {
    width: 8px;
}

.sr-list::-webkit-scrollbar-thumb,
.sr-list--series::-webkit-scrollbar-thumb {
    background: #c2ccd3;
    border-radius: 8px;
}

.sr-list::-webkit-scrollbar-thumb:hover,
.sr-list--series::-webkit-scrollbar-thumb:hover {
    background: #a8b5bd;
}

.sr-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 30, 40, .05);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    transition: background .15s ease;
}

.sr-item:hover {
    background: #fdf4f4;
    color: var(--primary);
}

.sr-item__code {
    flex: 0 0 auto;
    min-width: 155px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .3px;
}

.sr-item__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-width: 0;
}

.sr-item__spec {
    font-size: 12px;
    color: #5d6b73;
    white-space: nowrap;
}

.sr-item__spec b {
    margin-right: 2px;
    font-weight: 600;
    color: #9aa7b0;
}

.sr-support {
    padding: 13px;
    text-align: center;
    font-size: 12px;
    color: #93a0a8;
    border-bottom: 1px solid rgba(15, 30, 40, .05);
}

.sr-support a {
    color: var(--primary);
    font-weight: 600;
}

.sr-support a:hover {
    font-weight: 700;
}

/* --- Hamburger menü --- */
.header-menu {
    position: relative;
    flex: 0 0 15%;
    max-width: 15%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4px;
    padding-bottom: 5px;
}

.menu-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .18s ease, box-shadow .18s ease;
    z-index: 1003;
}

.menu-toggle:hover {
    background: #fdf1f1;
    box-shadow: 0 0 0 6px #fdf1f1;
}

/* --- Sepet düğmesi (header) --- */
.cart-btn {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    transition: background .18s ease, box-shadow .18s ease;
    z-index: 1003;
}

.cart-btn:hover {
    background: #fdf1f1;
    box-shadow: 0 0 0 6px #fdf1f1;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(189, 1, 1, .45);
}

.cart-badge[hidden] {
    display: none;
}

.menu-img {
    max-width: 21px;
    max-height: 21px;
    transition: transform var(--transition);
}

.menu-toggle:hover .menu-img {
    transform: scale(1.06);
}

.menu-dropdown {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    right: 0;
    min-width: 152px;
    overflow: hidden;
    background: linear-gradient(180deg, #c41414, #9c0101);
    border-radius: 12px;
    box-shadow: 0 18px 40px -10px rgba(15, 30, 40, .45);
    z-index: 1300;
    animation: menuIn .16s ease;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.menu-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.menu-quick__link img {
    min-width: 22px;
    max-width: 22px;
    transition: transform var(--transition);
}

.menu-quick__link:hover img {
    transform: scale(1.08);
}

.menu-item {
    display: block;
    width: 100%;
    min-height: 38px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    transition: background var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, .14);
    font-weight: 700;
}

.header-overlay {
    position: fixed;
    inset: var(--header-h) 0 var(--footer-h) 0;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    transition: opacity var(--transition);
}

.header-overlay.is-visible {
    opacity: 1;
}

/* ================================ MAIN =================================== */
.site-main {
    position: fixed;
    inset: var(--header-h) 0 var(--footer-h) 0;
    overflow: hidden;
}

.grid-section {
    height: 100%;
}

#anasayfa_dinamik {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 1px 0 5px;
    transition: width 1.25s ease-in-out;
}

/* --- Kutucuk (tile) --- */
.tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Başlangıç boyutu; JS tarafından ekrana göre yeniden hesaplanır */
    width: 100px;
    height: 100px;
    margin: 0;
    padding: 0;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    overflow: visible;
    box-sizing: border-box;
    background: #fff;
    transition: box-shadow .18s ease, border-color .18s ease;
}

.tile:hover {
    border-color: rgba(189, 1, 1, .35);
    box-shadow: 0 8px 22px rgba(15, 30, 40, .12);
}

.tile__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.tile__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity .3s ease;
}

.tile__img--contain {
    width: 70%;
    height: 70%;
}

body.is-booting .tile__img {
    visibility: hidden;
}

.tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, rgba(201, 22, 22, .93) 0%, rgba(140, 1, 1, .92) 100%);
    backdrop-filter: blur(1.5px);
    border-radius: inherit;
    opacity: 0;
    transition: opacity .25s ease;
    cursor: pointer;
}

.tile:hover .tile__overlay {
    opacity: 1;
}

.tile__num {
    color: #fff;
    text-align: center;
    z-index: 1;
    letter-spacing: .5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.tile--action .tile__link:hover {
    transform: scale(1.03);
    transition: transform .8s ease;
}

/* Seri numarası tipografisi (eski temadan korunmuştur) */
.text-setting-a { font-size: 19px; font-weight: 700; }
.text-setting-b { font-size: 17px; font-weight: 700; line-height: 1.05; margin-top: 2px; }
.text-setting-c { font-size: 17px; font-weight: 700; line-height: 1.05; margin-top: 2px; }
.related__overlay.text-setting-a { font-size: 20px; }
.related__overlay.text-setting-b,
.related__overlay.text-setting-c { font-size: 18px; line-height: 1.05; }

/* --- Hover popover ---
   Görüntü alanına sabitlenir (position: fixed) ve hover edilen kutucuğa
   JS ile çapalanır; böylece ızgaranın taşma alanına takılmaz. */
.tile__popover {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: calc(100vw - 24px);
    padding: 0;
    background: #fff;
    border: 1px solid rgba(15, 30, 40, .08);
    border-radius: 14px;
    box-shadow: 0 24px 60px -12px rgba(15, 30, 40, .35), 0 4px 14px rgba(15, 30, 40, .10);
    overflow: hidden;
    z-index: 1900;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transform-origin: center center;
    /* Fare popover'ın üzerine gelebilsin; tıklanınca seri açılır */
    pointer-events: auto;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
    will-change: opacity, transform;
}

.tile__popover.is-visible {
    opacity: 1;
    transform: none;
}

/* Kapanma (solma) sırasında fare olaylarını geçir ki tıklamayı engellemesin */
.tile__popover.is-leaving {
    pointer-events: none;
}

.tile__popover:hover {
    box-shadow: 0 30px 70px -14px rgba(15, 30, 40, .42), 0 4px 16px rgba(15, 30, 40, .12);
}

.popover__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    color: #fff;
    background: linear-gradient(135deg, #c91616 0%, var(--primary) 48%, #860101 100%);
}

.popover__badge {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .5px;
}

.popover__titles strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.popover__titles em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11.5px;
    opacity: .88;
}

.popover__media {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 10px;
    padding: 12px 14px;
    background: #f7f9fb;
    border-bottom: 1px solid rgba(15, 30, 40, .07);
}

.popover__media:last-child {
    border-bottom: 0;
}

.popover__figure {
    margin: 0;
    text-align: center;
}

.popover__figure:only-child {
    grid-column: 1 / -1;
}

.popover__figure-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 104px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 10px;
}

.popover__figure-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popover__figure figcaption {
    margin-top: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--muted);
}

.popover__desc {
    max-height: 128px;
    overflow-y: auto;
    padding: 12px 16px 14px;
    font-size: 12px;
    line-height: 1.55;
    color: #4b5b64;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.popover__desc::-webkit-scrollbar {
    width: 6px;
}

.popover__desc::-webkit-scrollbar-thumb {
    background: #c9d2d8;
    border-radius: 6px;
}

/* ============================== OVERLAYLAR =============================== */
.browser-overlay,
.main-overlay {
    position: fixed;
    inset: 0 0 var(--footer-h) 0;
    background: #fff;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.browser-overlay {
    z-index: 1700;
}

.browser-overlay[hidden],
.main-overlay[hidden] {
    display: none;
}

.browser-overlay__box p {
    color: #ccc;
    font-size: 18px;
}

.browser-overlay__label {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 16px !important;
}

.browser-overlay__box a {
    display: block;
    margin-top: 6px;
    color: #ccc;
    font-size: 14px;
}

.browser-overlay__box a:hover {
    font-weight: 700;
}

.main-overlay__box {
    color: #ccc;
    font-size: 18px;
}

.progress {
    position: relative;
    width: 75%;
    min-width: 240px;
    height: 4px;
    margin: 20px auto 0;
    background: #e0e0e0;
    border-radius: 2px;
}

.progress__bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #c91616, var(--primary));
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(189, 1, 1, .4);
    transition: width .5s ease;
}

.progress__text {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
}

/* ================================ FOOTER ================================= */
.site-footer {
    position: fixed;
    inset: auto 0 0 0;
    height: var(--footer-h);
    background: linear-gradient(180deg, #c41414, var(--primary));
    box-shadow: 0 -6px 20px rgba(15, 30, 40, .12);
    color: #fff;
    z-index: 1002;
}

.footer-inner {
    display: flex;
    align-items: center;
    height: var(--footer-h);
    padding: 0 8px;
    font-size: 13px;
    transition: width 1.25s ease-in-out;
}

.footer-tagline {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 194px;
}

.footer-contact {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact a:hover {
    font-weight: 700;
}

.footer-sep {
    font-weight: 700;
}

.footer-copy {
    flex: 0 0 20%;
    max-width: 20%;
    text-align: right;
    min-width: 140px;
}

/* ================================= MODAL ================================= */
.modal-root {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-root[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(10px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.modal-window {
    position: relative;
    /* Ekrana tam oturur; yanlarda oklar, üstte logo/kapat için pay bırakır */
    width: min(1200px, calc(100vw - 150px));
    height: min(82vh, 720px);
    max-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    /* Kırpma yapılmaz: yan gezinme okları pencerenin dışına taşar.
       Köşe yuvarlaması pencerenin kendi arka planından gelir. */
    overflow: visible;
    background: #fff;
    border: 1px solid rgba(15, 30, 40, .08);
    border-radius: 18px;
    box-shadow: 0 40px 90px -20px rgba(6, 15, 20, .55), 0 2px 10px rgba(6, 15, 20, .12);
    animation: modalIn .22s cubic-bezier(.2, .9, .3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to   { opacity: 1; transform: none; }
}

/* Logo ve kapat düğmesi pencerenin DIŞINDA, şeffaf alanda durur
   (eski tasarımdaki gibi). Böylece içerik yükseklik kazanır. */
.modal-chrome {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    background: transparent;
    border-bottom: 0;
    pointer-events: none;   /* yalnızca içindeki öğeler tıklanabilir */
}

.modal-chrome > * {
    pointer-events: auto;
}

.modal-chrome .modal-logo img {
    height: 34px;
    width: auto;
    max-width: 160px;
    transition: transform var(--transition);
}

.modal-chrome .modal-logo:hover img {
    transform: scale(1.03);
}

.modal-close img {
    height: 20px;
    transition: transform var(--transition);
}

.modal-close:hover img {
    transform: scale(1.08);
}

/* --- Modalın solunda/sağında önceki–sonraki seri okları --- */
.modal-sidenav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0;
    z-index: 6;
    pointer-events: none;
}

.modal-sidenav[hidden] {
    display: none;
}

.modal-sidenav__btn {
    position: absolute;
    top: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 64px;
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
}

.modal-sidenav__btn--prev {
    left: -64px;
}

.modal-sidenav__btn--next {
    right: -64px;
}

.modal-sidenav__btn img {
    width: 50px;
    max-width: 100%;
    transition: transform .15s ease, opacity .15s ease;
}

.modal-sidenav__btn:hover:not([disabled]) img {
    transform: scale(1.14);
}

.modal-sidenav__btn[disabled] {
    cursor: default;
    opacity: .4;
}

.modal-sidenav__btn[disabled] img {
    filter: grayscale(100%) brightness(240%);
}

.modal-content {
    /* Gövde kaydırmaz; iç bölgeler gerektiğinde kendi içinde kayar */
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 16px 14px;
}

.modal-loading {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-loading img {
    width: 60px;
}

.modal-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
}

/* Görsel büyütme (lightbox) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .97);
    cursor: zoom-out;
    padding: 20px;
}

.lightbox img {
    max-width: 96%;
    max-height: 96%;
    object-fit: contain;
}

.lightbox[hidden] {
    display: none;
}

/* 3D model büyütme: koyu zemin, gömülü X3DOM fareyle döndürülür */
.lightbox--3d {
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px 14px;
    background: rgba(10, 16, 22, .96);
    cursor: default;
}

.lightbox__model {
    flex: 1 1 auto;
    width: min(1200px, 96vw);
    min-height: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}

.lightbox__hint {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    letter-spacing: .3px;
}

.lightbox__close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.lightbox__close:hover {
    background: var(--primary);
}

/* ============================= SERİ MODALI =============================== */
.seri-modal {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0 18px;
}

/* İki kolon da mevcut yüksekliği doldurur; taşma olursa
   yalnızca ilgili kolon kendi içinde kayar (sayfa kaymaz). */
.seri-modal__left,
.seri-modal__right {
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* Yalnızca dikey kaydırma; yatay taşma/kaydırma çubuğu oluşmaz */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.seri-modal__left {
    border-right: 2px solid var(--line);
    padding-right: 18px;
}

.seri-head {
    flex: 0 0 auto;
    display: grid;
    /* Kullanım görseli eski tasarımdaki gibi sol kolonun ~yarısını kaplar */
    grid-template-columns: minmax(228px, 46%) 1fr;
    gap: 12px;
    padding-bottom: 8px;
}

.media-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(150px, 21vh, 190px);
    padding: 7px;
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 30, 40, .05);
    transition: border-color .18s ease, box-shadow .18s ease;
    cursor: zoom-in;
}

.media-box:hover {
    border-color: rgba(189, 1, 1, .3);
    box-shadow: 0 8px 20px rgba(15, 30, 40, .12);
}

.media-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-box__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.media-box:hover .media-box__label {
    opacity: 1;
}

.seri-head__title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PDF ve bilgi (?) ikonları sol kolonun sağ ucuna yaslanır */
.seri-head__tools,
.urun-detail__tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.icon-btn img {
    width: 21px;
    height: 21px;
    transition: transform var(--transition);
}

.icon-btn:hover img {
    transform: scale(1.08);
}

/* PDF üretilirken ikon pasif görünür */
.icon-btn.is-busy {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

.seri-head__name {
    font-size: 13px;
    font-weight: 700;
    color: #24343d;
    margin: 0 0 6px;
}

.seri-head__desc {
    max-height: clamp(62px, 12vh, 104px);
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.35;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.block {
    flex: 0 0 auto;
    margin-top: 10px;
}

/* Ürün listesi bloğu: kalan yüksekliği doldurur, içi kendi kayar */
.block--list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px 6px;
    font-weight: 700;
    font-size: 13px;
    color: #24343d;
}

.block__title::before {
    content: "";
    display: block;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--primary);
}

.block__title--center {
    justify-content: center;
    color: var(--muted);
}

.block__title--center::before {
    display: none;
}

.block__title--center {
    text-align: center;
    color: var(--muted);
}


/* --- Ürün listesi tablosu --- */
.urun-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 30, 40, .05);
    overflow: hidden;
}

.urun-list__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    /* Sağ boşluk, gövdedeki kaydırma çubuğu payına eşitlenir (hiza için) */
    padding: 8px 22px 0 12px;
}

.urun-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed;
}

.urun-table th,
.urun-table td {
    /* Eski tasarımdaki gibi ince ama nefes alan satırlar */
    padding: 3px 4px;
    line-height: 1.2;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.urun-table thead th {
    font-size: 11px;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 var(--primary);
    border-bottom: 0;
}

.urun-table .col-code  { width: 120px; text-align: center; }
.urun-table .col-renk  { width: 44px; }
.urun-table .col-spec  { width: 44px; }
.urun-table .col-reset { width: 26px; }
.urun-table .col-act   { width: 62px; }

.filterable {
    cursor: pointer;
}

.filterable:hover {
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .15);
}

.filterable.is-filtered {
    color: var(--primary);
}

.filter-caret {
    font-size: 8px;
    margin-left: 2px;
}

.filter-reset img {
    width: 17px;
    filter: grayscale(100%) brightness(250%);
    transition: filter var(--transition);
}

.filter-reset.is-active img {
    filter: none;
}

.urun-list__body {
    flex: 1 1 auto;
    min-height: 118px;
    max-height: none;
    padding: 0 12px;
    /* Kaydırma çubuğu payını her zaman ayır: başlık ve gövde kolonları hizalı kalır */
    scrollbar-gutter: stable;
}

.urun-list__body.is-filtering .urun-table--body {
    filter: blur(4px);
}

.urun-row {
    cursor: pointer;
}

.urun-row:hover td {
    color: var(--primary);
    font-weight: 700;
}

.urun-row td:last-child,
.urun-row td:nth-last-child(2) {
    border-bottom: 0;
}

.renk-dot {
    width: 14px;
    height: 14px;
    padding: 1px;
    border: 1px solid #ddd;
    border-radius: 3px;
    vertical-align: middle;
}

.renk-none {
    color: #bbb;
}

.btn-pill {
    min-width: 44px;
    padding: 1px 9px;
    border-radius: 29px;
    background: #b9c3c9;
    border: 1px solid transparent;
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: background var(--transition), box-shadow var(--transition);
}

.btn-pill:hover {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(189, 1, 1, .35);
}

.urun-row:hover .btn-pill {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}

.support-row td {
    font-size: 11px;
    color: #999;
    border-bottom: 1px solid var(--line-soft);
}

.support-row a:hover {
    color: var(--primary);
    font-weight: 700;
}

/* Ürün gezinme okları: modal yan oklarının KÜÇÜK (kırmızı) versiyonları */
.nav-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.nav-arrow:hover:not(:disabled) {
    background: #fdf1f1;
}

.nav-arrow img {
    width: 25px;
    max-width: 100%;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-arrow:hover:not(:disabled) img {
    transform: scale(1.18);
}

.nav-arrow:disabled {
    cursor: default;
    opacity: .45;
}

.nav-arrow:disabled img {
    filter: grayscale(100%) brightness(260%);
}

/* Filtre menüsü */
.filter-menu {
    position: absolute;
    min-width: 46px;
    min-height: 140px;
    max-height: 203px;
    overflow-y: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid rgba(15, 30, 40, .1);
    border-radius: 10px;
    box-shadow: 0 16px 36px -10px rgba(15, 30, 40, .35);
    font-size: 10px;
    text-align: center;
    z-index: 2500;
    scrollbar-width: thin;
    animation: dropIn .14s ease;
}

.filter-menu div {
    padding: 3px 2px;
    cursor: pointer;
    white-space: nowrap;
}

.filter-menu div:hover {
    background: #f0f0f0;
    color: var(--primary);
    font-weight: 700;
}

/* --- İlişkili ürünler + katalog --- */
.seri-foot {
    flex: 0 0 auto;
    display: grid;
    /* İlişkili ürünler şeridi daha geniş; katalog kutusu sabit oranda */
    grid-template-columns: 1.7fr 1fr;
    gap: 12px;
    margin-top: 10px;
    min-width: 0;
}

.block--related,
.block--catalog {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 30, 40, .05);
    min-height: 105px;
    padding: 10px;
    margin-top: 0;
}

.related {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.related--empty {
    justify-content: center;
    color: #aaa;
    font-size: 12px;
    min-height: 60px;
}

/* İlişkili ürünler okları: ürün gezinme oklarıyla aynı (küçük kırmızı) */
.related__arrow {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.related__arrow img {
    width: 22px;
    max-width: 100%;
    transition: transform var(--transition);
}

.related__arrow:hover {
    background: #fdf1f1;
}

.related__arrow:hover img {
    transform: scale(1.15);
}

.related__track {
    /* Kabı genişletmeden yatay kayar (min-width: 0 kritik) */
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px;
}

.related__track::-webkit-scrollbar {
    display: none;
}

.related__track {
    cursor: grab;
}

.related__track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* Not: Otomatik kaydırma "bir ürün / adım" şeklinde ilerler; adım animasyonu
   için smooth-scroll açık kalır (oklarla birebir aynı davranış). */
.related__track.is-autoplay {
    cursor: grab;
}

/* Tekerlekle kaydırma sırasında takılmayı önlemek için smooth kapatılır */
.related__track.is-wheeling {
    scroll-behavior: auto;
}

.related__item {
    position: relative;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 9px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.related__item:hover {
    border-color: rgba(189, 1, 1, .3);
    box-shadow: 0 6px 16px rgba(15, 30, 40, .14);
}

.related__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .3s ease;
}

.related__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.related__item:hover .related__overlay {
    opacity: 1;
}

.related__item:hover img {
    opacity: .5;
}

.catalog-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 100%;
    min-height: 83px;
    border-radius: 8px;
    transition: background .18s ease;
}

.catalog-box:hover {
    background: #fbfcfd;
}

.catalog-box img {
    width: 40px;
    transition: transform var(--transition);
}

.catalog-box strong {
    display: block;
    color: var(--muted);
    font-size: 16px;
}

.catalog-box em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #555;
}

.catalog-box:hover img {
    transform: scale(1.05);
}

.catalog-box:hover strong,
.catalog-box:hover em {
    color: var(--primary);
    font-weight: 700;
}

/* ============================ ÜRÜN İNCELEME ============================== */
.urun-detail {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.urun-detail__inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.urun-detail__head {
    flex: 0 0 auto;
    padding-bottom: 6px;
}

.urun-detail__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.urun-detail__title small {
    font-size: 11px;
    font-weight: 700;
    color: #24343d;
}

.urun-detail__tools {
    margin-left: auto;
}

.urun-media {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.urun-media .media-box {
    height: clamp(108px, 16vh, 150px);
}

.media-box--3d {
    cursor: default;
    padding: 0;
}

.media-box--3d .model3D {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 3B kutusundaki "döndür" ipucu (el ikonu): ortada değil, SOL iç köşede */
.rotable {
    position: absolute;
    left: 2px;
    bottom: 2px;
    right: auto;
    width: 60px;
    transform: scale(.62);
    transform-origin: bottom left;
    filter: grayscale(100%) brightness(150%);
    transition: opacity .3s ease;
}

.media-box--3d.is-ready .rotable {
    opacity: 0;
    pointer-events: none;
}

/* 3B kutusu: tüm alan tıklanabilir (büyüt + fareyle döndür) */
.media-box__zoom {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.media-box__zoom-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #12202a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: background .15s ease, color .15s ease;
}

.media-box__zoom:hover .media-box__zoom-icon {
    background: var(--primary);
    color: #fff;
}

/* --- Ölçü ve fiyat (kompakt) --- */
.spec-price {
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 30, 40, .05);
    padding: 8px;
}

.spec-price__row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.spec-table {
    flex: 1 1 auto;
    border-collapse: collapse;
    font-size: 10px;
}

.spec-table th {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 4px;
    text-align: center;
    box-shadow: inset 0 -1px 0 var(--line-soft);
}

.spec-table td {
    padding: 3px 4px;
    text-align: center;
}

/* Her paket tek satır: solda adet + fiyat, sağda "Sepete Ekle" */
.price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
    gap: 4px;
    margin-top: 6px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 28px;
    padding: 2px 4px 2px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.price-row__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.price-row__qty {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.price-row__val {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.price-row__btn {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #c91616, var(--primary));
    border: 1px solid rgba(140, 1, 1, .6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
    white-space: nowrap;
    box-shadow: 0 3px 10px -3px rgba(189, 1, 1, .5);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.price-row__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(189, 1, 1, .6);
}

.price-row__btn.is-added {
    background: #2f9e4f;
    border-color: #2f9e4f;
    box-shadow: 0 3px 10px -3px rgba(47, 158, 79, .6);
}

.price-empty {
    grid-column: 1 / -1;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* --- Bilgi kartları --- */
/* Malzeme/renk/kimyasal bölümü: kalan alanı doldurur ve
   yalnızca bu bölge kendi içinde kayar. */
.urun-cols {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
    margin-top: 6px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.info-card {
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    background: #fcfdfe;
    box-shadow: 0 2px 10px rgba(15, 30, 40, .04);
    padding: 14px;
    font-size: 10px;
}

.info-card__row {
    padding: 4px 0;
}

.info-card__row + .info-card__row {
    border-top: 1px solid #ccc;
    margin-top: 6px;
    padding-top: 8px;
}

.info-card__sep {
    color: var(--primary);
    font-weight: 700;
    padding: 0 4px;
}

.info-card--support {
    text-align: center;
}

.info-card--support h4 {
    color: var(--primary);
    font-size: 14px;
}

.info-card--support a {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.info-card--support a:hover {
    color: var(--primary);
    font-weight: 700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    border: 1px solid #e6ebf0;
    border-radius: var(--radius);
    background: #fcfdfe;
    box-shadow: 0 2px 10px rgba(15, 30, 40, .04);
    padding: 12px;
}

.stat-card {
    text-align: center;
}

.stat-card__head {
    background: linear-gradient(160deg, #3d5964, var(--slate));
    color: #fff;
    border-radius: 20px 20px 0 0;
    min-height: 40px;
    padding: 5px;
    font-size: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card__head span {
    display: block;
    opacity: .85;
}

.stat-card--chem .stat-card__head {
    min-height: 30px;
    border-radius: 20px 20px 0 0;
}

.stat-card__val {
    background: #f3f3f3;
    border-radius: 0 0 20px 20px;
    padding: 6px 5px;
    font-size: 9px;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card__val.level-a { background: #08fd08; }
.stat-card__val.level-b { background: #ffeb3b; }
.stat-card__val.level-c { background: #ff4b4b; }

.chem-legend {
    display: flex;
    gap: 5%;
    margin-bottom: 8px;
}

.chem-legend span {
    flex: 1;
    padding: 6px;
    border-radius: 15px;
    font-size: 11px;
    text-align: center;
    color: var(--slate);
    font-weight: 600;
}

.chem-legend .level-a { background: #06CA06; }
.chem-legend .level-b { background: #ffeb3b; }
.chem-legend .level-c { background: #ff4b4b; }

/* =========================== İÇERİK MODALLARI ============================ */
.content-modal {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.content-modal__head {
    border-bottom: 4px solid var(--primary);
    text-align: center;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.content-modal__head h1 {
    font-size: 26px;
    font-weight: 600;
}

.content-modal__head b {
    color: var(--primary);
}

.content-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.content-modal--info {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-image,
.info-link img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(1108px, 100%);
    max-height: min(62vh, 620px);
    object-fit: contain;
}

.info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.info-link img {
    transition: transform var(--transition);
}

.info-link:hover img {
    transform: scale(1.01);
}

/* --- İletişim --- */
.contact {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 14px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.contact__map iframe {
    height: clamp(260px, 42vh, 400px);
}

.contact__map iframe {
    border-radius: var(--radius);
}

.contact__logo {
    width: 300px;
    max-width: 70%;
    display: block;
    margin: 10px auto;
}

.contact__info h3 {
    text-align: center;
    font-size: 18px;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.contact__box h5 {
    margin-top: 10px;
}

.contact__box h5 img {
    height: 30px;
}

.contact__box h5 img[alt="E-posta"] {
    height: 40px;
}

.contact__box p {
    margin: 0 0 12px;
}

.contact__box a:hover {
    color: var(--primary);
    font-weight: 700;
}

/* --- Hakkında --- */
.about {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 10px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.about__logo {
    display: block;
    width: 350px;
    max-width: 80%;
    margin: 0 auto 20px;
}

.about__text {
    font-size: 16px;
    line-height: 1.5;
}

.about__text p {
    margin: 0 0 16px;
}

/* --- Metin bölümleri (şartname / KVKK) --- */
.text-section {
    padding: 0 4px 12px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 12px;
}

.text-section:last-child {
    border-bottom: 0;
}

.text-section h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.text-section p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 10px;
}

.text-section__center {
    text-align: center;
}

.text-section__list {
    margin: 0 0 12px;
    padding-left: 22px;
    font-size: 14px;
    line-height: 1.45;
}

.text-section__list li {
    margin-bottom: 4px;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
}

.kvkk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: center;
}

.kvkk-table th,
.kvkk-table td {
    border: 1px solid #ccc;
    padding: 6px;
    vertical-align: top;
}

.kvkk-table thead th {
    background: #ccc;
    font-weight: 700;
}

/* --- Belge ızgarası --- */
.doc-section {
    padding: 0 4px 12px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 12px;
}

.doc-section h5 {
    font-size: 15px;
    margin-bottom: 10px;
}

.doc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 4px;
}

.doc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95px;
    text-align: center;
    transition: transform var(--transition);
}

.doc-item img {
    height: 75px;
    padding-bottom: 8px;
    object-fit: contain;
}

.doc-item h6 {
    font-size: 11px;
    font-weight: 400;
}

.doc-item:hover {
    transform: scale(1.03);
}

.doc-item:hover h6 {
    color: var(--primary);
    font-weight: 700;
}

/* --- Destek bloğu --- */
.support-block {
    padding: 12px 4px;
    text-align: center;
}

.support-block h4 {
    color: var(--primary);
    font-weight: 700;
}

.support-block a:hover {
    color: var(--primary);
    font-weight: 700;
}

.support-block__sep {
    color: var(--primary);
    font-weight: 700;
    margin: 0 6px;
}

/* --- İndirim --- */
.support-block p {
    margin: 4px 0;
}

/* ================================ TOAST ================================== */
.toast-stack {
    position: fixed;
    /* Üstte konumlanır: açık modal penceresinin görünür alanı dışında,
       ekranın en üst katmanında (z-index 3000 > modal 2000) belirgin görünür. */
    top: calc(var(--header-h) + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: max-content;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.toast {
    padding: 11px 20px;
    background: var(--slate);
    color: #fff;
    border-radius: 22px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: var(--shadow-md);
    animation: toastIn .2s ease;
    pointer-events: auto;
}

.toast--ok {
    /* Empoli kırmızısı zemin + beyaz yazı */
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 28px -8px rgba(189, 1, 1, .55);
}

.toast--ok::before {
    content: '✓';
    margin-right: 8px;
    font-weight: 700;
}

.toast--err {
    background: #b3261e;
    box-shadow: 0 12px 28px -8px rgba(179, 38, 30, .65);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1250px) {
    .seri-modal {
        grid-template-columns: 1fr;
    }

    .seri-modal__left {
        border-right: 0;
        padding-right: 0;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .urun-cols {
        grid-template-columns: 1fr;
    }
}

/* ========================= AKICILIK / İNCE AYARLAR ======================= */
::selection {
    background: rgba(189, 1, 1, .18);
}

:focus-visible {
    outline: 2px solid rgba(189, 1, 1, .55);
    outline-offset: 2px;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ================================= SEPET ================================= */
.cart-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9d2d8 transparent;
}

.cart-item {
    border: 1px solid var(--border-ink, rgba(18, 26, 32, .55));
    border-radius: 12px;
    background: #fff;
    padding: 8px 10px 9px;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.cart-item:hover {
    border-color: rgba(189, 1, 1, .45);
    box-shadow: 0 6px 16px -8px rgba(18, 26, 32, .35);
}

.cart-item__main {
    display: grid;
    grid-template-columns: 54px 1fr auto auto 26px;
    gap: 10px;
    align-items: center;
}

.cart-item__thumb {
    width: 54px;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-ink, rgba(18, 26, 32, .55));
    border-radius: 9px;
    background: #f7fafb;
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cart-item__thumb:hover {
    border-color: rgba(189, 1, 1, .55);
    box-shadow: 0 4px 12px -6px rgba(18, 26, 32, .45);
}

.cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cart-item__thumb--yok {
    border-style: dashed;
    color: #b9c4cc;
    font-size: 15px;
    font-weight: 700;
}

.cart-item__link {
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    letter-spacing: .2px;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}

.cart-item__link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.cart-item__olcu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.cart-olcu {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #eef4f8;
    border: 1px solid #dbe6ee;
    font-size: 10px;
    color: #2f3f49;
    white-space: nowrap;
}

.cart-olcu b {
    font-weight: 700;
    color: var(--primary);
}

.cart-item__renk {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    vertical-align: -1px;
    border: 1px solid rgba(0, 0, 0, .18);
}

.cart-item__code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__code small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item__qty {
    font-size: 11px;
    font-weight: 600;
    color: #43535c;
    white-space: nowrap;
}

.cart-item__total {
    min-width: 74px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.cart-item__breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line-soft);
}

/* --- Tek paket kademesi satırı: [1000 adet] [− n +] [tutar] [×] --- */
.cart-kalem {
    display: grid;
    grid-template-columns: 88px 1fr auto 22px;
    gap: 8px;
    align-items: center;
    padding: 3px 6px;
    border-radius: 8px;
}

.cart-kalem:nth-child(odd) {
    background: #f9fbfc;
}

.cart-kalem__adet {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #12202a;
    white-space: nowrap;
}

.cart-kalem__adet span {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--muted);
}

.cart-kalem__ctl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-self: start;
}

/* Toplam adet: "+" düğmesinin yanında "= 250 adet" biçiminde gösterilir */
.cart-kalem__toplam {
    margin-left: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #12202a;
    white-space: nowrap;
}

.cart-step {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eef2f6;
    color: #33454e;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.cart-step:hover {
    background: var(--primary);
    color: #fff;
}

.cart-kalem__input {
    width: 48px;
    padding: 2px 4px;
    border: 1px solid #cfdbe4;
    border-radius: 7px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    color: #12202a;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cart-kalem__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(189, 1, 1, .14);
}

/* Firefox/Chrome sayı okları gizlenir; ± düğmeleri kullanılır */
.cart-kalem__input::-webkit-outer-spin-button,
.cart-kalem__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-kalem__input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-kalem__sayi {
    min-width: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #43535c;
}

.cart-kalem__tutar {
    min-width: 70px;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.cart-kalem__sil {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #b0bcc4;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.cart-kalem__sil:hover {
    background: #fdecec;
    color: var(--primary);
}

.cart-kalem--kismi {
    background: #fff8ec;
}

.cart-kalem--kismi .cart-kalem__adet,
.cart-kalem--kismi .cart-kalem__tutar {
    color: #b07715;
}

.cart-remove {
    justify-self: end;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #b0bcc4;
    font-size: 16px;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.cart-remove:hover {
    background: #fdecec;
    color: var(--primary);
}

.cart-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background:
        radial-gradient(120% 150% at 0% 0%, rgba(189, 1, 1, .07), transparent 58%),
        linear-gradient(180deg, #ffffff, #f6f8fa);
    border: 1px solid #e6ecf1;
    box-shadow: 0 12px 28px -16px rgba(15, 30, 40, .45);
}

.cart-total {
    position: relative;
    padding-left: 12px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.1;
    color: #12202a;
}

/* Sol tarafta ince kırmızı vurgu çubuğu */
.cart-total::after {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #c91616, var(--primary));
}

.cart-total::before {
    content: 'Genel Toplam';
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.cart-total small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .2px;
    color: var(--muted);
}

.cart-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-act {
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cart-act--primary {
    background: linear-gradient(180deg, #c91616, var(--primary));
    border: 1px solid rgba(140, 1, 1, .6);
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(189, 1, 1, .45);
}

.cart-act--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(189, 1, 1, .55);
}

.cart-act--ghost {
    background: #f2f5f7;
    border: 1px solid #e2e8ed;
    color: #43535c;
}

.cart-act--ghost:hover {
    background: #e9eef2;
}

.cart-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ============================ KART KENARLIKLARI ==========================
   Eski tasarımdaki gibi hafif mat siyah çerçeve (sert siyah değil). */
.media-box,
.urun-list,
.spec-price,
.info-card,
.card-grid,
.block--related,
.block--catalog {
    border-color: var(--border-ink);
}
