:root {
    font-family: Inter, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;

    color: var(--text, #0f172a);
    background: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--text, #0f172a);
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.customer-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 16px #00000012;
}

.customer-top {
    max-width: 1240px;
    margin: auto;
    min-height: 82px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    min-width: 180px;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
}

.brand-logo img {
    max-height: 58px;
    max-width: 180px;
    object-fit: contain;
}

.customer-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 0 16px;
}

.customer-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
    padding: 14px;
}

.customer-actions {
    display: flex;
    gap: 8px;
}

.customer-actions button {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 10px 13px;
    cursor: pointer;
}

.customer-nav {
    max-width: 1240px;
    margin: auto;
    padding: 0 24px;
    height: 54px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 650;
}

.nav-links a:hover {
    background: color-mix(
        in srgb,
        var(--primary) 10%,
        white
    );
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 24px;
}

.hero-slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: #e2e8f0;
    overflow: hidden;
}

.slides {
     position: relative;
    width: 100%;
    min-height: 0;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease;
}

.slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.slide-overlay {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 520px;
    padding: 30px;
    color: white;
    text-shadow: 0 2px 10px #0008;
}

.slide-overlay h1 {
    font-size: clamp(28px, 4vw, 56px);
    margin: 0 0 10px;
}

.slide-overlay p {
    font-size: 18px;
}

.placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            120deg,
            var(--primary),
            var(--secondary)
        );
    color: #fff;
    text-align: center;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 5px 20px #0003;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    margin: 5px;
    background: #ffffff88;
    cursor: pointer;
}

.slider-dots button.active {
    background: #fff;
    transform: scale(1.25);
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
}

.section-head {
    margin-bottom: 28px;
}

.section-head span,
.contact-section > div > span {
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
}

.section-head h2 {
    font-size: 34px;
    margin: 7px 0;
}

.brand-marquee {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.brand-track {
    display: flex;
    align-items: center;
    width: max-content;
}

.brand-card {
    width: 180px;
    height: 110px;
    margin: 10px;
    display: grid;
    place-items: center;
    background: #fff;
}

.brand-card img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.campaign-card {
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px #0000000d;
}

.campaign-card img {
   width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.campaign-card > div {
    padding: 22px;
}

.campaign-card h3 {
    margin: 0 0 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px #00000012;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.product-info strong {
    display: block;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-info a {
    color: var(--primary);
    font-weight: 700;
}

.contact-section {
    background: var(--secondary);
    color: white;
    padding: 65px max(
        24px,
        calc((100% - 1150px) / 2)
    );

    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-section > div > span {
    color: #fff;
}

.contact-section h2 {
    font-size: 34px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-grid a,
.contact-grid > div {
    background: #ffffff12;
    border: 1px solid #ffffff20;
    padding: 18px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-grid span {
    opacity: .8;
}

footer {
    background: #020617;
    color: #fff;
    padding: 28px max(
        24px,
        calc((100% - 1150px) / 2)
    );

    display: flex;
    justify-content: space-between;
    gap: 20px;
}

footer div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 750;
    cursor: pointer;
}

.btn.primary {
    background: var(--button, #2563eb);
    color: #fff;
}

.btn.secondary {
    background: #fff;
    color: var(--secondary);
}

.empty-state {
    padding: 28px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
}

.builder-body {
    min-height: 100vh;
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    display: flex;
}

.builder-shell {
    width: min(
        720px,
        calc(100% - 32px)
    );

    margin: auto;
    padding: 32px 0;
}

.builder-shell.wide {
    width: min(
        980px,
        calc(100% - 32px)
    );
}

.builder-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 18px 50px #0f172a14;
}

.hero-card {
    text-align: center;
}

.hero-card h1 {
    font-size: clamp(
        32px,
        5vw,
        52px
    );

    margin: 12px 0;
}

.hero-card p {
    font-size: 18px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 28px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #2563eb;
}

.muted,
.muted-link {
    color: #64748b;
}

.builder-form section {
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
}

.builder-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 650;
    margin-bottom: 14px;
}

.builder-form input:not(
    [type=checkbox]
):not(
    [type=color]
),
.builder-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    padding: 12px;
    background: #fff;
    outline: 0;
}

.builder-form input:focus,
.builder-form textarea:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 3px #2563eb18;
}

.builder-form input[type=color] {
    width: 100%;
    height: 48px;
    padding: 3px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.color-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 15px;
}

.checks {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.checks label {
    flex-direction: row;
    align-items: center;
    font-weight: 600;
}

.full {
    width: 100%;
}

.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin: 15px 0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.admin-body {
    background: #f1f5f9;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f172a;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.admin-sidebar h2 {
    margin: 0 0 4px;
}

.admin-sidebar p {
    color: #94a3b8;
    margin-top: 0;
}

.admin-sidebar a {
    padding: 11px 12px;
    border-radius: 10px;
    color: #cbd5e1;
}

.admin-sidebar a:hover {
    background: #ffffff12;
    color: #fff;
}

.admin-main {
    padding: 32px;
    max-width: 1400px;
    width: 100%;
    margin: auto;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-head h1 {
    margin: 5px 0;
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.stats div,
.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
}

.stats b,
.stats span {
    display: block;
}

.stats b {
    font-size: 30px;
}

.stats span {
    color: #64748b;
}

.admin-card {
    margin-bottom: 22px;
}

.admin-card h2 {
    margin-top: 0;
}

.compact {
    padding-bottom: 18px;
}

.item-list {
    display: grid;
    gap: 10px;
}

.item {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 10px;
}

.item img {
    width: 75px;
    height: 55px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 8px;
}

.item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item span {
    color: #64748b;
}

.danger {
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    padding: 8px 11px;
    border-radius: 9px;
    cursor: pointer;
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.inline-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

@media (max-width: 850px) {

    .customer-top {
        flex-wrap: wrap;
    }

    .brand-logo {
        min-width: auto;
    }

    .customer-search {
        order: 3;
        flex-basis: 100%;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .menu-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 136px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 14px 24px;
        box-shadow: 0 10px 20px #0001;
    }

    .campaign-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .grid-2,
    .color-grid {
        grid-template-columns: 1fr;
    }

    .admin-main {
        padding: 18px;
    }

    .builder-card {
        padding: 24px;
    }
}

@media (max-width: 520px) {

    .customer-actions button {
        font-size: 0;
        padding: 10px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    

    .slide-overlay {
        left: 4%;
        padding: 15px;
        max-width: 85%;
    }

    .slide-overlay h1 {
        font-size: 28px;
    }

    .section {
        padding: 45px 18px;
    }
}

.image-help {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef4ff;
    color: #36527a;
    font-size: 14px;
    line-height: 1.5;
}

.image-help strong {
    color: #1d4ed8;
    font-weight: 800;
}

/* =========================================
   DÜZENLEME PANELİ
   ========================================= */

.edit-box {
    margin: 18px 0 24px 0;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8faff;
    box-shadow: 0 6px 18px rgba(30, 60, 100, 0.06);
}

.edit-box form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edit-box label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 600;
}

.edit-box input[type="text"],
.edit-box input[type="file"],
.edit-box input[type="number"] {
    width: 100%;
    box-sizing: border-box;
}

.edit-box .image-help {
    margin-top: 2px;
    margin-bottom: 5px;
}

.edit-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.edit-actions .btn {
    min-width: 170px;
}

.edit-btn {
    white-space: nowrap;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.item-actions form {
    margin: 0;
}

.cancel-edit {
    cursor: pointer;
}
/* =========================================================
   ÖZEL BÖLÜMLER
   ========================================================= */

.customer-custom-section {
    padding: 70px 20px;
}

.custom-section-inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.custom-section-inner > h2 {
    margin-bottom: 35px;
    text-align: center;
}

.custom-image-text-grid,
.custom-product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.custom-content-card,
.custom-product-card,
.custom-contact-box,
.custom-announcement {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        0 10px 30px rgba(0,0,0,.06);
}

.custom-content-card img,
.custom-product-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-bottom: 18px;
}

.custom-content-card h3,
.custom-product-card h3 {
    margin-bottom: 10px;
}

.custom-content-card p {
    line-height: 1.7;
}

.custom-gallery {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.custom-gallery img {
     width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

.custom-faq {
    display: grid;
    gap: 12px;
}

.custom-faq details {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
}

.custom-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.custom-faq p {
    margin-top: 15px;
    line-height: 1.7;
}

.customer-custom-form {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.customer-custom-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.customer-custom-form input,
.customer-custom-form textarea,
.customer-custom-form select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font: inherit;
}

.customer-custom-form textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   ADMIN ÖZEL BÖLÜM EDİTÖRÜ
   ========================================================= */

.section-editor {
    margin-top: 30px;
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fafafa;
}

.section-editor-head {
    margin-bottom: 20px;
}

.dynamic-item {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.section-preview-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gallery-admin-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
}

.menu-extra-fields {
    margin: 15px 0;
}

.check-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.check-line input {
    width: auto !important;
}
/* =========================================================
   FORM MESAJLARI
   ========================================================= */

.form-submissions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.form-submission-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.form-submission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.form-submission-head > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-submission-head strong {
    font-size: 18px;
    color: #0f172a;
}

.form-submission-head span {
    font-size: 13px;
    color: #64748b;
}

.form-submission-head form {
    margin: 0;
}

.form-submission-head .danger {
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.form-submission-head .danger:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.form-submission-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.submission-field {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.submission-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.submission-field p {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.empty-state {
    text-align: center;
    padding: 45px 20px;
    margin-top: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}

.empty-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   FORM MESAJLARI - MOBİL
   ========================================================= */

@media (max-width: 700px) {

    .form-submission-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-submission-head form {
        width: 100%;
    }

    .form-submission-head .danger {
        width: 100%;
    }

    .form-submission-data {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   TÜM CİHAZLARDA YATAY KAYDIRMA
   MARKALAR + KAMPANYALAR + ÜRÜNLER
   ========================================================= */

/* =========================
   MARKALAR
   ========================= */

.brand-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.brand-track {
    width: max-content;
    flex-wrap: nowrap;
}


/* =========================
   KAMPANYALAR
   ========================= */

.campaign-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.campaign-card {
    flex: 0 0 320px;
    min-width: 320px;
}


/* =========================
   ÜRÜNLER
   ========================= */

.product-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 18px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.product-card {
    flex: 0 0 260px;
    min-width: 260px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .campaign-card {
        flex-basis: 300px;
        min-width: 300px;
    }

    .product-card {
        flex-basis: 230px;
        min-width: 230px;
    }
}


/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width: 520px) {

    .brand-marquee {
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .brand-card {
        flex: 0 0 170px;
    }

    .campaign-card {
        flex-basis: 82vw;
        min-width: 82vw;
    }

    .product-card {
        flex-basis: 72vw;
        min-width: 72vw;
    }
}
/* Mobil menü açıkken üç çizgi butonu görünür kalsın */
@media (max-width: 900px) {

    .menu-toggle {
        position: relative;
        z-index: 1001;
    }

    body.menu-open .menu-toggle {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1002;
    }

}