*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f4f7fb;color:#111827}.container{width:min(1120px,94%);margin:24px auto}.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #e5e7eb;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:14px 4%;box-shadow:0 8px 30px rgba(15,23,42,.05)}.brand{text-decoration:none;font-weight:900;color:#0f172a;display:flex;gap:10px;align-items:center}.brand:before{content:'CTM';background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;border-radius:14px;padding:10px}.brand span{font-size:18px}.site-header nav{display:flex;gap:8px;flex-wrap:wrap}.site-header nav a{padding:10px 14px;border-radius:12px;text-decoration:none;color:#334155;font-weight:700}.site-header nav a:hover{background:#eff6ff;color:#1d4ed8}.hero{background:linear-gradient(135deg,#0f3b82,#0ea5e9);color:#fff;padding:50px;border-radius:28px;margin-bottom:24px;box-shadow:0 20px 50px rgba(37,99,235,.18)}.hero h1{font-size:clamp(30px,5vw,52px);margin:0 0 12px}.hero p{font-size:18px;max-width:680px}.grid{display:grid;gap:18px}.cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:24px;box-shadow:0 10px 35px rgba(15,23,42,.06)}.card h2{margin-top:0}.card a{color:#2563eb;font-weight:900}.btn{border:0;border-radius:14px;padding:13px 18px;background:#e2e8f0;color:#0f172a;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.btn.primary{background:#2563eb;color:#fff}.btn.danger{background:#dc2626;color:#fff}.btn.small{padding:8px 12px;border-radius:10px}.setup-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e0f2fe,#f8fafc)}.setup-card{width:min(760px,94%);background:#fff;border-radius:26px;padding:28px;box-shadow:0 20px 60px rgba(15,23,42,.12)}.setup-card.small{width:min(420px,94%)}label{display:flex;flex-direction:column;gap:8px;font-weight:800;color:#334155;margin-bottom:14px}input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:13px 14px;font-size:16px;background:#fff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.alert{padding:14px 16px;border-radius:14px;margin:12px 0;font-weight:800}.alert.ok{background:#dcfce7;color:#166534}.alert.error{background:#fee2e2;color:#991b1b}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}pre{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:16px;overflow:auto;min-height:120px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px}th{background:#f8fafc;color:#475569}.search-bar{display:flex;gap:10px;margin:16px 0}.product-page{background:#fff;border-radius:28px;padding:34px;border:1px solid #e5e7eb}.product-page h1{font-size:clamp(30px,5vw,50px);margin:8px 0}.lead{font-size:20px;color:#475569}.content{font-size:18px;line-height:1.7;margin:24px 0}.breadcrumb{color:#64748b}.cta-box{background:#eff6ff;border:1px solid #bfdbfe;padding:22px;border-radius:20px}.site-footer{text-align:center;padding:28px;color:#64748b}@media(max-width:720px){.site-header{align-items:flex-start;gap:12px;flex-direction:column}.form-grid,.preview-grid{grid-template-columns:1fr}.hero{padding:28px}.search-bar{flex-direction:column}.admin-head{align-items:flex-start;flex-direction:column}.brand span{font-size:16px}}
.product-thumb{width:100%;height:150px;object-fit:cover;border-radius:18px;margin-bottom:14px;background:#e0f2fe}
.product-main-image{width:100%;max-height:360px;object-fit:cover;border-radius:24px;margin:14px 0 22px;background:#e0f2fe}

.preview-grid{align-items:start}
.preview-grid pre{white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:anywhere!important;max-width:100%;max-height:320px;overflow:auto}
.footer-contact{margin-top:10px;display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap}
.footer-contact span{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:8px 12px;color:#334155;font-weight:700}
.inline-actions{display:flex;gap:10px;flex-wrap:wrap}
.danger-zone{border-color:#fecaca!important;background:#fff7f7!important}
.danger-zone h2{color:#991b1b}
@media(max-width:720px){.preview-grid pre{max-height:240px}.inline-actions{flex-direction:column}.inline-actions .btn{width:100%}}

/* v5 - admin önizleme kutusu kesin sığdırma */
.preview-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,2fr)!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.preview-grid > div{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
}
.preview-grid pre{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:150px!important;
    max-height:150px!important;
    overflow:auto!important;
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
}
@media(max-width:900px){
    .preview-grid{
        grid-template-columns:1fr!important;
    }
    .preview-grid pre{
        height:180px!important;
        max-height:180px!important;
    }
}

.preview-grid pre{
overflow:auto!important;
-webkit-overflow-scrolling:touch;
}
.footer-social{
display:flex;
gap:12px;
justify-content:center;
flex-wrap:wrap;
padding:14px 0;
}
.footer-social a{
background:#2563eb;
color:#fff;
padding:10px 16px;
border-radius:999px;
text-decoration:none;
font-weight:700;
}
img,iframe,video{
max-width:100%;
height:auto;
}
table{
width:100%;
overflow:auto;
display:block;
}
@media(max-width:768px){
body{
overflow-x:hidden;
}
.container,.card,.preview-grid{
max-width:100%!important;
width:100%!important;
}
input,textarea,select,button{
max-width:100%!important;
}
}


/* v7 - kesin responsive admin önizleme ve buton düzeltmeleri */
html, body{
    max-width:100%;
    overflow-x:hidden!important;
}

.container{
    max-width:1120px;
    width:min(1120px,94%)!important;
}

.card{
    max-width:100%!important;
    overflow:hidden!important;
}

.preview-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)!important;
    gap:16px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
}

.preview-grid > div{
    min-width:0!important;
    max-width:100%!important;
    width:100%!important;
    overflow:hidden!important;
}

.preview-grid pre{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:170px!important;
    max-height:170px!important;
    overflow:auto!important;
    white-space:pre-wrap!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
    font-size:13px!important;
    line-height:1.45!important;
}

.form-grid{
    max-width:100%!important;
}

.form-grid label,
.form-grid input,
.form-grid textarea,
.form-grid select{
    min-width:0!important;
    max-width:100%!important;
}

.btn,
button,
input[type="submit"]{
    max-width:100%!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.2!important;
}

.inline-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
}

.inline-actions .btn,
.inline-actions button{
    flex:0 1 auto!important;
}

.table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
}

table{
    display:table!important;
    min-width:720px;
}

@media(max-width:900px){
    .preview-grid{
        grid-template-columns:1fr!important;
    }
    .preview-grid pre{
        height:190px!important;
        max-height:190px!important;
    }
}

@media(max-width:720px){
    .container{
        width:96%!important;
        margin:14px auto!important;
    }

    .card{
        padding:16px!important;
        border-radius:18px!important;
    }

    .form-grid{
        grid-template-columns:1fr!important;
        gap:10px!important;
    }

    .btn,
    button,
    input[type="submit"]{
        width:100%!important;
        min-height:46px!important;
    }

    .site-header nav{
        width:100%!important;
        display:grid!important;
        grid-template-columns:1fr 1fr!important;
    }

    .site-header nav a{
        text-align:center!important;
    }

    .preview-grid pre{
        height:210px!important;
        max-height:210px!important;
    }

    .inline-actions{
        flex-direction:column!important;
    }

    .inline-actions .btn,
    .inline-actions button{
        width:100%!important;
    }
}


/* v8 - modern etkileyici footer */
.modern-footer{
    margin-top:42px;
    padding:34px 16px!important;
    background:linear-gradient(135deg,#0f172a,#0f3b82 55%,#0ea5e9)!important;
    color:#fff!important;
    text-align:left!important;
}

.footer-inner{
    width:min(1120px,94%);
    margin:0 auto;
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
    gap:22px;
    align-items:center;
}

.footer-brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.footer-logo{
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 12px 35px rgba(0,0,0,.18);
    font-weight:1000;
    letter-spacing:.5px;
}

.footer-brand strong{
    display:block;
    font-size:20px;
    letter-spacing:.5px;
}

.footer-brand p{
    margin:6px 0 0;
    color:#dbeafe;
    line-height:1.45;
}

.footer-info{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    justify-content:center;
}

.footer-pill{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:10px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    color:#fff!important;
    text-decoration:none!important;
    font-weight:800;
    font-size:13px;
    backdrop-filter:blur(8px);
}

.footer-pill.whatsapp{
    background:rgba(34,197,94,.22);
}

.modern-social{
    display:flex!important;
    gap:10px!important;
    justify-content:flex-end!important;
    align-items:center!important;
    flex-wrap:wrap!important;
    padding:0!important;
    margin:0!important;
}

.social-btn{
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    min-height:44px;
    padding:10px 14px!important;
    border-radius:999px!important;
    color:#fff!important;
    text-decoration:none!important;
    font-weight:900!important;
    box-shadow:0 10px 28px rgba(0,0,0,.18);
    transition:transform .18s ease, box-shadow .18s ease;
}

.social-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 36px rgba(0,0,0,.26);
}

.social-icon{
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.22);
    font-weight:1000;
}

.social-btn.instagram{
    background:linear-gradient(135deg,#f97316,#db2777,#7c3aed)!important;
}

.social-btn.youtube{
    background:linear-gradient(135deg,#ef4444,#b91c1c)!important;
}

.social-btn.facebook{
    background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
}

@media(max-width:900px){
    .footer-inner{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-brand{
        justify-content:center;
        flex-direction:column;
    }

    .footer-info{
        justify-content:center;
    }

    .modern-social{
        justify-content:center!important;
    }
}

@media(max-width:520px){
    .modern-footer{
        padding:28px 12px!important;
    }

    .footer-info,
    .modern-social{
        flex-direction:column!important;
        width:100%;
    }

    .footer-pill,
    .social-btn{
        width:100%!important;
        justify-content:center!important;
    }
}
