:root{
    --bg:#f4f6f8;
    --surface:#ffffff;
    --ink:#111820;
    --muted:#66717f;
    --line:#dde3e8;
    --primary:#e25024;
    --primary-dark:#bd3b17;
    --dark:#121820;
    --green:#1aa260;
    --danger:#c43f3f;
    --radius:18px;
    --shadow:0 14px 40px rgba(17,24,32,.08);
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background:var(--bg);
    color:var(--ink);
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:min(1180px,calc(100% - 36px));
    margin:auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header{
    background:#ffffff;
    border-bottom:1px solid var(--line);

    /* HEADER ARTIK EKRANA YAPIŞMAZ */
    position:relative;
    top:auto;
    z-index:10;
}

.header-inner{
    min-height:66px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:6px 0;
}

/* LOGO ALANI */

.logo{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex:0 0 auto;
    margin:0;
    padding:0;
    height:54px;
}

/* DGK LOGO */

.header-logo{
    display:block;

    /*
    JPG logon kareye yakın olduğu için
    yüksekliği kontrol ediyoruz.
    */
    width:auto !important;
    height:48px !important;
    max-width:90px !important;

    object-fit:contain;
    object-position:left center;

    margin:0;
    padding:0;
}

/* ESKİ LOGO İKONU */

.logo-icon,
.brand-mark{
    display:grid;
    place-items:center;
    background:var(--dark);
    color:#fff;
}

.logo-icon{
    width:36px;
    height:36px;
    border-radius:10px;
}


/* HEADER BUTONLARI */

.header-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
}


/* =========================================================
   BUTONLAR
   ========================================================= */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border:1px solid transparent;
    border-radius:12px;

    padding:11px 16px;

    font-weight:750;
    font-size:14px;

    cursor:pointer;
    transition:.18s;

    background:#fff;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn.primary{
    background:var(--primary);
    color:#fff;
}

.btn.primary:hover{
    background:var(--primary-dark);
}

.btn.ghost{
    border-color:var(--line);
    background:#fff;
}

.btn.whatsapp{
    background:var(--green);
    color:#fff;
}

.btn.danger{
    background:#fff0f0;
    color:var(--danger);
    border-color:#f2caca;
}

.btn.small{
    padding:8px 11px;
    border-radius:9px;
    font-size:13px;
}

.btn.full{
    width:100%;
}


/* =========================================================
   HERO
   ========================================================= */

.hero{
    background:linear-gradient(
        135deg,
        #141b24 0%,
        #232d39 100%
    );

    color:#fff;
    padding:70px 0;
}

.hero-grid{
    display:grid;
    grid-template-columns:1.45fr .65fr;
    gap:54px;
    align-items:center;
}

.eyebrow{
    font-size:12px;
    font-weight:850;
    letter-spacing:.14em;
    color:var(--primary);

    display:block;
    margin-bottom:10px;
}

.hero h1{
    font-size:clamp(36px,5vw,64px);
    line-height:1.02;
    margin:0 0 18px;
    max-width:800px;
}

.hero p{
    color:#cbd2da;
    max-width:700px;
    font-size:18px;
    line-height:1.6;
}

.hero-card{
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    padding:28px;

    display:flex;
    flex-direction:column;
    gap:8px;
}

.hero-card-icon{
    font-size:44px;
    margin-bottom:10px;
}

.hero-card strong{
    font-size:20px;
}

.hero-card span{
    color:#c8d0d8;
    line-height:1.5;
}


/* =========================================================
   ARAMA
   ========================================================= */

.search-box{
    display:flex;
    gap:10px;

    margin-top:28px;
    background:#fff;
    padding:7px;
    border-radius:15px;

    max-width:700px;
}

.search-box input{
    flex:1;
    border:0;
    outline:0;
    font:inherit;
    padding:9px 12px;
    min-width:0;
}


/* =========================================================
   ÜRÜNLER
   ========================================================= */

.products-section{
    padding:54px 0 70px;
}

.section-heading,
.admin-title-row{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:24px;
}

.section-heading h2,
.admin-title-row h1{
    margin:0;
    font-size:32px;
}

.count-badge{
    background:#fff;
    border:1px solid var(--line);

    padding:8px 12px;
    border-radius:999px;

    color:var(--muted);
    font-weight:700;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.product-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:
        0 4px 18px
        rgba(17,24,32,.035);

    transition:.2s;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow);
}

.product-image-wrap{
    height:245px;
    background:#eef1f4;
    display:block;
}

.product-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.product-placeholder,
.detail-placeholder{
    height:100%;

    display:grid;
    place-items:center;

    font-size:60px;
    color:#a9b2bb;
}

.product-body{
    padding:20px;
}

.product-body h3{
    margin:8px 0 6px;
    font-size:20px;
}

.product-body p{
    color:var(--muted);
    line-height:1.55;
    min-height:48px;
}

.category{
    font-size:12px;
    color:var(--primary);
    font-weight:850;

    text-transform:uppercase;
    letter-spacing:.07em;
}

.product-code{
    color:var(--muted);
    font-size:13px;
}

.product-code.large{
    font-size:15px;
    margin-top:-4px;
}

.price{
    font-size:20px;
    font-weight:850;
    margin-top:12px;
}

.text-link{
    font-weight:800;
    font-size:14px;
    color:var(--primary);
}


/* =========================================================
   BOŞ DURUM
   ========================================================= */

.empty-state{
    background:#fff;
    border:1px dashed #cbd3da;
    border-radius:20px;

    padding:56px 24px;

    text-align:center;
    color:var(--muted);
}

.empty-state>div{
    font-size:42px;
}

.empty-state h3{
    color:var(--ink);
}

.empty-state.compact{
    padding:36px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer{
    background:#111820;
    color:#cbd2da;
    padding:30px 0;
}

.footer-grid{
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.site-footer strong{
    color:#fff;
}

.site-footer a{
    color:#fff;
}


/* =========================================================
   ÜRÜN DETAY
   ========================================================= */

.detail-page{
    padding:54px 0 70px;
}

.detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:48px;
}

.detail-image-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;

    overflow:hidden;
    min-height:460px;
}

.detail-image-card img{
    width:100%;
    height:100%;

    max-height:620px;
    object-fit:contain;

    background:#fff;
}

.detail-content h1{
    font-size:44px;
    line-height:1.08;
    margin:10px 0 16px;
}

.detail-price{
    font-size:30px;
}

.description{
    margin:28px 0;

    color:#424d58;
    font-size:17px;
    line-height:1.75;
}

.contact-box{
    background:#fff;
    border:1px solid var(--line);

    padding:22px;
    border-radius:18px;
}

.contact-box strong{
    font-size:18px;
}

.contact-box p{
    color:var(--muted);
    line-height:1.55;
}

.contact-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-body{
    min-height:100vh;

    display:grid;
    place-items:center;

    padding:30px;

    background:
        linear-gradient(
            135deg,
            #111820,
            #25303d
        );
}

.auth-card{
    width:min(440px,100%);

    background:#fff;
    border-radius:24px;
    padding:34px;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.25);
}

.brand-mark{
    width:48px;
    height:48px;

    border-radius:14px;
    font-weight:900;

    margin-bottom:20px;
}

.auth-card h1{
    margin:0 0 8px;
}

.auth-card>p{
    color:var(--muted);
    margin-top:0;
}

.stack{
    display:grid;
    gap:15px;
    margin-top:24px;
}

label{
    display:grid;
    gap:7px;

    font-weight:750;
    font-size:14px;
}

input,
textarea{
    width:100%;

    border:1px solid #cfd7de;
    background:#fff;

    border-radius:11px;
    padding:12px 13px;

    font:inherit;
    color:var(--ink);

    outline:none;
}

input:focus,
textarea:focus{
    border-color:var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(226,80,36,.1);
}

textarea{
    resize:vertical;
}

label small{
    font-weight:500;
    color:var(--muted);
}

.back-link{
    display:block;
    text-align:center;

    margin-top:18px;

    color:var(--muted);
    font-weight:700;
}

.alert{
    padding:13px 15px;
    border-radius:11px;
    margin:16px 0;
    font-size:14px;
}

.alert.success{
    background:#eaf8ef;
    color:#17673a;
}

.alert.danger{
    background:#fff0f0;
    color:#983434;
}

.admin-panel-body{
    background:#f2f4f6;
    min-height:100vh;
}

.admin-header{
    background:#111820;
    color:#fff;
}

.admin-header-inner{
    min-height:68px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:20px;
}

.admin-header-inner>div{
    display:flex;
    flex-direction:column;
}

.admin-header-inner span{
    font-size:12px;
    color:#98a4af;
}

.admin-header nav{
    display:flex;
    gap:18px;
    font-size:14px;
}

.admin-header nav a{
    color:#d9e0e6;
}

.admin-main{
    padding:38px 0 70px;
}

.admin-main.narrow{
    max-width:900px;
}

.admin-card{
    background:#fff;
    border:1px solid var(--line);

    border-radius:18px;
    padding:20px;
}

.table-wrap{
    overflow:auto;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
}

.admin-table th,
.admin-table td{
    padding:14px 12px;

    border-bottom:
        1px solid #edf0f2;

    text-align:left;
    vertical-align:middle;
}

.admin-table th{
    font-size:12px;
    text-transform:uppercase;

    color:var(--muted);
    letter-spacing:.06em;
}

.admin-table td small{
    display:block;
    color:var(--muted);
    margin-top:4px;
}

.admin-thumb,
.thumb-placeholder{
    width:58px;
    height:58px;

    border-radius:10px;

    object-fit:cover;
    background:#eef1f4;
}

.thumb-placeholder{
    display:grid;
    place-items:center;
}

.status{
    font-size:12px;
    font-weight:850;

    padding:6px 9px;
    border-radius:999px;
}

.status.active{
    background:#e9f8ef;
    color:#18723e;
}

.status.passive{
    background:#eef0f2;
    color:#69737e;
}

.actions{
    display:flex;
    gap:8px;
    align-items:center;
}

.actions form{
    margin:0;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.span-2{
    grid-column:span 2;
}

.checkbox{
    display:flex;
    grid-column:span 2;

    align-items:center;
    gap:10px;
}

.checkbox input{
    width:18px;
    height:18px;
}

.current-image{
    display:flex;
    align-items:center;

    gap:15px;
    padding:12px;

    background:#f6f7f8;
    border-radius:12px;
}

.current-image img{
    width:90px;
    height:90px;

    object-fit:cover;
    border-radius:10px;
}

.form-actions{
    display:flex;
    gap:10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px){

    .hero-grid,
    .detail-grid{
        grid-template-columns:1fr;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-card{
        display:none;
    }

}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width:620px){

    .container{
        width:min(
            100% - 24px,
            1180px
        );
    }


    /* HEADER MOBİL */

    .header-inner{
        min-height:60px;

        flex-direction:row;
        align-items:center;
        justify-content:space-between;

        gap:8px;
        padding:5px 0;
    }

    .logo{
        height:48px;
        flex:0 0 auto;
    }

    .header-logo{
        height:42px !important;
        width:auto !important;
        max-width:75px !important;
    }

    .header-actions{
        width:auto;

        display:flex;
        flex-direction:row;
        justify-content:flex-end;

        gap:6px;
    }

    .header-actions .btn{
        flex:0 0 auto;

        padding:9px 10px;
        font-size:12px;
    }


    /* HERO */

    .hero{
        padding:42px 0;
    }

    .hero h1{
        font-size:39px;
    }

    .hero p{
        font-size:16px;
    }


    /* ARAMA */

    .search-box{
        flex-direction:column;

        background:transparent;
        padding:0;
    }

    .search-box input{
        background:#fff;
        border-radius:12px;
        padding:14px;
    }


    /* ÜRÜNLER */

    .product-grid{
        grid-template-columns:1fr;
    }

    .product-image-wrap{
        height:280px;
    }

    .section-heading,
    .admin-title-row{
        align-items:flex-start;
        flex-direction:column;
    }


    /* ÜRÜN DETAY */

    .detail-content h1{
        font-size:34px;
    }


    /* FOOTER */

    .footer-grid{
        flex-direction:column;
    }


    /* ADMIN */

    .form-grid{
        grid-template-columns:1fr;
    }

    .span-2{
        grid-column:span 1;
    }

    .admin-header-inner{
        padding:12px 0;

        align-items:flex-start;
        flex-direction:column;
    }

    .admin-header nav{
        flex-wrap:wrap;
    }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3){
        display:none;
    }

    .actions{
        flex-direction:column;
        align-items:stretch;
    }

}


/* =========================================================
   ÇOK KÜÇÜK TELEFONLAR
   ========================================================= */

@media (max-width:430px){

    .header-inner{
        flex-wrap:wrap;
    }

    .header-logo{
        height:40px !important;
        max-width:70px !important;
    }

    .header-actions{
        width:100%;
    }

    .header-actions .btn{
        flex:1;
    }

}