:root {
    --bg: #ffffff;
    --paper: #ffffff;
    --line: #e3e8ef;
    --text: #1f2937;
    --muted: #667085;
    --accent: #275df5;
    --accent-dark: #1d4ed8;
    --accent-soft: #eef4ff;
    --shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    overflow-x: clip;
    font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    color: #101828;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
}

form {
    margin: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    isolation: isolate;
}

.site-header__inner {
    width: min(1460px, calc(100% - 24px));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    grid-template-areas:
        "brand search actions"
        "brand categories categories";
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}

.page-shell {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
}

.site-brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 128px;
}

.site-brand__logo {
    max-height: 128px;
    width: auto;
    object-fit: contain;
}

.site-search {
    grid-area: search;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

    .site-search input, .inline-form input, .account-form input, .account-form textarea, .account-form select {
        min-height: 52px;
        padding: 12px 16px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: var(--paper);
    }

    .site-search button, .primary-button, .secondary-button {
        min-height: 52px;
        padding: 0 20px;
        border-radius: 999px;
        cursor: pointer;
    }

    .site-search button, .primary-button {
        background: linear-gradient(135deg, var(--accent), var(--accent-dark));
        color: #fff;
        font-weight: 700;
    }

.secondary-button {
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 700;
}

.site-actions, .category-bar, .admin-toolbar, .admin-actions, .product-card__icons, .product-card__price-row, .section-head, .carousel-shell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-actions {
    grid-area: actions;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-actions > a,
.site-actions > .account-menu {
    flex: 0 0 auto;
}

.site-action,
.account-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-action:hover,
.site-action:focus-visible,
.account-menu.is-open .account-menu__trigger,
.account-menu__trigger:hover,
.account-menu__trigger:focus-visible {
    background: var(--accent-soft);
    border-color: var(--line);
    box-shadow: 0 10px 22px rgba(24, 85, 184, 0.08);
}

.site-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
}

.site-action__icon--svg {
    width: 22px;
    height: 22px;
}

.site-action__icon-svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-action--icon-only {
    position: relative;
    justify-content: center;
    width: 52px;
    min-width: 52px;
    padding: 0;
    gap: 0;
}

.site-action__label {
    white-space: nowrap;
}

.text-link, .text-button {
    color: var(--accent-dark);
    font-weight: 700;
    cursor: pointer;
}

.text-button--danger {
    color: #b42318;
}

.text-button--danger:hover {
    color: #7a1c14;
}

.account-menu {
    position: relative;
    z-index: 40;
}

.account-menu.is-open {
    z-index: 140;
}

.account-menu__trigger {
    cursor: pointer;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.account-avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar__initials {
    display: inline-flex;
}

.account-menu__trigger::after {
    content: "▾";
    font-size: 0.85rem;
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 160;
    min-width: 220px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 36px rgba(24, 85, 184, 0.16);
}

.account-menu__panel[hidden] {
    display: none !important;
}

.account-menu__panel a,
.account-menu__logout {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    text-align: left;
}

.account-menu__panel a:hover,
.account-menu__logout:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.account-menu__logout {
    cursor: pointer;
}

.icon-link > span[id] {
    display: inline-flex;
    min-width: 24px;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
}

.icon-link .site-action__icon,
.icon-link .site-action__label {
    background: transparent;
    padding: 0;
    min-width: 0;
}

.category-bar {
    grid-area: categories;
    gap: 10px;
    overflow-x: auto;
    padding: 0 0 12px;
}

    .category-bar a {
        white-space: nowrap;
        padding: 10px 16px;
        border-radius: 999px;
        border: 1px solid var(--line);
        background: #fff;
    }

        .category-bar a.is-active, .category-bar a:hover, .chip {
            background: var(--accent-soft);
            border-color: var(--accent);
            color: var(--accent-dark);
        }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.page-shell {
    padding: 28px 0 56px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #0f1b2d;
    color: #cbd5e1;
    margin-top: 48px;
}

.site-footer__inner {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo-link {
    display: inline-flex;
}

.footer-logo {
    height: 52px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.footer-tagline {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.footer-col__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: #94a3b8;
}

.footer-address p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.55;
}

.footer-address strong {
    color: #f1f5f9;
}

.footer-address a {
    color: #94a3b8;
    transition: color 0.18s;
}

.footer-address a:hover {
    color: #fff;
}

.footer-icon {
    flex-shrink: 0;
    font-size: 14px;
    margin-top: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13.5px;
    color: #94a3b8;
    transition: color 0.18s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.site-footer__bottom-inner {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #64748b;
}

.footer-legal-note {
    text-align: right;
}

.status-message {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.status-message--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Fiyat değişimi — ürün kartı içi bildirim */
.cart-item--price-changed {
    border-left: 3px solid #fbbf24;
}

.checkout-item--price-changed {
    border-left: 3px solid #fbbf24;
    padding-left: 8px;
}

.cart-item__price-notice {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    width: fit-content;
}

.cart-item__price-notice--up {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cart-item__price-notice--down {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cart-item__price-notice__old {
    text-decoration: line-through;
    opacity: 0.65;
}

.cart-item__price-notice__diff {
    font-weight: 700;
    opacity: 0.85;
}

/* Adres formu validation summary */
.addr-validation-summary {
    display: none;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: .9rem;
}

.addr-validation-summary ul {
    margin: 6px 0 0;
    padding: 0 0 0 18px;
}

.addr-validation-summary li {
    margin: 2px 0;
}

/* Hata varsa göster */
.addr-validation-summary.validation-summary-errors {
    display: block;
}

.field-validation-error {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.home-page, .detail-page, .account-page, .profile-page, .admin-page, .policy-page {
    display: grid;
    gap: 28px;
}

.section-block, .account-card, .profile-card, .detail-sidebar, .detail-gallery__item, .admin-table-wrap, .cart-items, .cart-summary {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-head {
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head--stacked {
    display: grid;
    justify-content: stretch;
}

.section-head h1, .section-head h2, .detail-sidebar h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.section-head p, .detail-description, .account-footer, .address-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.98rem;
}

.section-head--tight {
    margin-bottom: 4px;
    gap: 6px;
}

.hero-slider {
    position: relative;
    min-height: 320px;
    padding: 0;
    overflow: hidden;
    border-radius: 32px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: 0.4s ease;
    display: flex; /* Grid yerine Flex daha stabil sonuç verebilir */
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden; /* Kapsayıcıdan taşmayı engeller */
}

    .hero-slide.is-active {
        opacity: 1;
        transform: translateX(0);
    }


.hero-slide__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background-color: #fff !important;
}

.hero-kicker, .eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.carousel-shell {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 18px;
}

.carousel-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    cursor: pointer;
    flex: 0 0 auto;
    color: #fff;
}

.product-carousel {
    display: grid;
    min-width: 0;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 4);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

.carousel-item {
    display: block;
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.empty-state {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    min-height: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #cad5e2;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
}

.product-gallery {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #fff, #edf4ff);
    overflow: hidden;
}

.product-gallery__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .product-gallery__image.is-active {
        opacity: 1;
    }

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(47,124,246,0.96);
    border: 1px solid var(--line);
    cursor: pointer;
    color: #fff;
}

.gallery-nav--prev {
    left: 12px;
}

.gallery-nav--next {
    right: 12px;
}

.product-card__body {
    display: grid;
    gap: 14px;
    padding: 18px;
    width: 100%;
    min-width: 0;
}

.product-card__name {
    font-size: 1rem;
    font-weight: 700;
    min-height: 44px;
}

.product-card__price-row strong, .detail-price {
    font-size: 1.16rem;
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    cursor: pointer;
}

    .icon-button.is-active {
        background: #eaf2ff;
        color: #1855b8;
    }

    .icon-button.is-in-cart {
        background: #eaf2ff;
        color: #1855b8;
    }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    gap: 24px;
    align-items: stretch;
}

.detail-gallery {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-gallery__item {
    position: absolute;
    inset: 0;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-in;
}

    .detail-gallery__item.is-active {
        opacity: 1;
        z-index: 1;
    }

    .detail-gallery__item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.detail-gallery__nav {
    z-index: 2;
}

.detail-sidebar {
    align-self: stretch;
    display: grid;
    gap: 24px;
    min-height: 620px;
    position: sticky;
    top: 150px;
}

.detail-sidebar__content {
    display: grid;
    gap: 16px;
    align-content: start;
}

.detail-specs, .profile-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

    .detail-specs div, .profile-list div, .address-card {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }

    .detail-specs dt, .profile-list dt {
        color: var(--muted);
    }

    .detail-specs dd, .profile-list dd {
        margin: 0;
        font-weight: 700;
    }

.detail-buybox {
    margin-top: auto;
    display: grid;
    gap: 18px;
}

.detail-price {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1;
    justify-self: start;
}

.detail-actions {
    justify-content: flex-start;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: max(32px, calc(env(safe-area-inset-top) + 32px)) max(16px, calc(env(safe-area-inset-right) + 16px)) max(16px, calc(env(safe-area-inset-bottom) + 16px)) max(16px, calc(env(safe-area-inset-left) + 16px));
    background: rgba(17, 16, 15, 0.82);
    z-index: 1000;
    overflow: auto;
}

    .lightbox[hidden] {
        display: none;
    }

    .lightbox img {
        width: auto;
        max-width: min(92vw, 1400px);
        max-height: calc(100dvh - 96px);
        object-fit: contain;
    }

.lightbox__close {
    position: fixed;
    top: max(16px, calc(env(safe-area-inset-top) + 12px));
    right: max(16px, calc(env(safe-area-inset-right) + 12px));
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

@media (max-width: 640px) {
    .lightbox {
        place-items: center;
        padding: max(72px, calc(env(safe-area-inset-top) + 72px)) 12px max(12px, calc(env(safe-area-inset-bottom) + 12px));
    }

    .lightbox img {
        max-width: 100%;
        max-height: calc(100dvh - 120px);
    }

    .lightbox__close {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .lightbox__nav.gallery-nav--prev {
        left: 12px;
    }

    .lightbox__nav.gallery-nav--next {
        right: 12px;
    }
}

.account-page {
    place-items: center;
}

.account-card {
    width: min(920px, 100%);
}

.account-card--wide {
    width: min(1040px, 100%);
}

.account-form {
    display: grid;
    gap: 16px;
}

    .account-form label {
        display: grid;
        gap: 8px;
        font-weight: 600;
    }

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.checkbox-row {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.checkbox-row--start {
    align-items: flex-start;
}

    .checkbox-row input {
        min-height: auto;
    }

.oauth-form {
    margin-top: 12px;
}

.profile-grid, .admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-grid--compact {
    align-content: start;
}

.profile-overview {
    display: grid;
    gap: 20px;
}

.profile-identity-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fbfcfe);
    box-shadow: var(--shadow);
}

.profile-identity-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-identity-card__image,
.profile-identity-card__initials {
    width: 108px;
    height: 108px;
    border-radius: 50%;
}

.profile-identity-card__image {
    object-fit: cover;
    border: 1px solid var(--line);
}

.profile-identity-card__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--accent-dark);
    font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

.profile-identity-card__content {
    display: grid;
    gap: 10px;
    align-content: center;
}

.profile-identity-card__content h2 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.profile-identity-card__content p {
    color: var(--muted);
}

.profile-identity-card__chips,
.account-shortcuts,
.address-list-page {
    display: grid;
    gap: 12px;
}

.account-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-shortcut-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.account-shortcut-card span,
.orders-row--account span,
.address-card-page__body p,
.address-card-page__head p {
    color: var(--muted);
    font-size: 0.94rem;
}

.profile-image-editor {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.profile-image-editor__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 12px;
}

.profile-image-editor__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-editor__content {
    display: grid;
    gap: 10px;
}

.profile-image-editor__content span {
    color: var(--muted);
}

.upload-button {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(39, 93, 245, 0.22);
}

.upload-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.address-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.address-card-page {
    display: grid;
    gap: 16px;
}

.address-card-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.address-card-page__head h2 {
    font-size: 1.1rem;
}

.address-card-page__body {
    display: grid;
    gap: 8px;
}

.profile-card--wide {
    grid-column: 1 / -1;
}

.orders-row, .admin-row {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.orders-row {
    grid-template-columns: 1.3fr 1fr 1fr auto;
}

.orders-row--account {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.orders-row--account > div {
    display: grid;
    gap: 6px;
}

.orders-row__actions {
    justify-self: end;
}

.order-detail-items {
    display: grid;
    gap: 16px;
}

.order-detail-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.order-detail-item:first-child {
    padding-top: 0;
}

.order-detail-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.order-detail-item__media img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 8px;
}

.order-detail-item__content {
    display: grid;
    gap: 8px;
}

.order-detail-item__content p {
    color: var(--muted);
}

.order-detail-item__title {
    font-weight: 700;
}

.order-detail-item__meta {
    display: grid;
    gap: 8px;
    text-align: right;
    white-space: nowrap;
}

.admin-row {
    grid-template-columns: 92px 1.4fr 1fr 0.8fr 0.7fr 0.8fr 1fr;
}

.admin-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-product-thumb img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

@media (max-width: 1400px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-shortcuts,
    .orders-row--account {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .order-detail-item__meta {
        grid-column: 1 / -1;
        text-align: left;
    }

    .profile-identity-card,
    .profile-image-editor {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-two,
    .profile-grid,
    .account-shortcuts,
    .orders-row--account {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        width: min(1460px, calc(100% - 16px));
        gap: 16px;
    }

    .page-shell,
    .site-footer__inner,
    .site-footer__bottom-inner {
        width: min(1460px, calc(100% - 24px));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 24px;
    }

    .footer-brand {
        grid-column: 1;
        align-items: flex-start;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-col__title {
        margin-bottom: 10px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-badges {
        gap: 8px;
    }

    .footer-address {
        gap: 8px;
    }

    .site-footer__bottom-inner {
        font-size: 11.5px;
        gap: 4px;
        padding: 14px 0;
    }
}

.admin-row--head {
    padding-top: 0;
    color: var(--muted);
    font-weight: 700;
}

.hero-stat {
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f7efe6);
    border: 1px solid var(--line);
}

.inline-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.image-upload-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 18px;
}

.image-upload-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.hero-slide-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hero-slide-admin-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.hero-slide-admin-card__image {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.hero-slide-admin-card__body {
    display: grid;
    gap: 6px;
}

    .hero-slide-admin-card__body span {
        color: var(--muted);
        word-break: break-all;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.cart-shipping-free {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.cart-free-shipping-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 4px;
}

.cart-free-shipping-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 0.85rem;
    margin-top: 4px;
}

.section-title {
    display: grid;
    gap: 8px;
}

    .section-title h1 {
        margin: 0;
    }

    .section-title p, .empty-cart span, .address-select-card span {
        color: var(--muted);
    }

.cart-page {
    display: grid;
    gap: 24px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.empty-cart {
    display: grid;
    gap: 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: 108px minmax(240px, 1.2fr) minmax(132px, 160px) minmax(120px, 140px) 56px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

    .cart-item:first-child {
        padding-top: 0;
    }

    .cart-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.cart-item__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cart-item img {
        width: 92px;
        height: 92px;
        object-fit: contain;
        border-radius: 16px;
        background: #fff;
        border: 1px solid var(--line);
        padding: 8px;
    }

.cart-item__details {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cart-item__name {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
}

.cart-item__meta {
    color: var(--muted);
}

.qty-form {
    display: grid;
    justify-items: start;
}

.qty-form__field {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--muted);
}

.qty-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.cart-item__total {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.cart-item__total span {
    color: var(--muted);
    font-size: 0.92rem;
}

.cart-item__remove-form {
    display: flex;
    justify-content: flex-end;
}

.cart-item__remove-button {
    width: 46px;
    height: 46px;
}

.cart-item__remove-button span {
    font-size: 1.1rem;
}

.checkout-button {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.35);
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s, transform 0.15s;
}

.checkout-button:hover {
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.45);
    transform: translateY(-1px);
}

.checkout-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

.checkout-order-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
}

.checkout-order-btn:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.checkout-order-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.address-card__actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
}

.address-select-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.address-select-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
}

    .address-select-card > span {
        display: grid;
        gap: 4px;
    }

    .address-select-card input {
        margin-top: 4px;
    }

.policy-document {
    max-width: 980px;
    margin: 0 auto;
}

.policy-section {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

    .policy-section:first-of-type {
        padding-top: 0;
        border-top: 0;
    }

    .policy-section h2 {
        margin: 0;
        font-size: 1.3rem;
    }

    .policy-section p {
        margin: 0;
        color: var(--muted);
        line-height: 1.75;
    }

.policy-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.75;
}

    .policy-list li + li {
        margin-top: 6px;
    }

@media (max-width: 1100px) {
    .site-header__inner {
        width: min(100% - 24px, 1460px);
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "actions"
            "categories";
    }

    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .site-brand {
        min-height: auto;
    }

    .site-brand__logo {
        max-height: 104px;
    }

    .site-actions {
        justify-content: flex-start;
    }

    .product-carousel {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .image-upload-grid, .admin-stats, .hero-slide-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout, .profile-grid, .orders-row, .admin-row, .form-grid-two, .cart-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

    .cart-item {
        grid-template-columns: 92px minmax(0, 1fr) minmax(132px, 160px) minmax(120px, 140px) 56px;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: relative;
        z-index: 220;
    }

    .page-shell {
        width: min(100% - 24px, 1460px);
    }

    .site-header__inner {
        width: min(100% - 24px, 1460px);
        gap: 16px;
        padding: 16px 0 12px;
    }

    .site-brand__logo {
        max-height: 88px;
    }

    .site-search {
        grid-template-columns: 1fr;
    }

    .site-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
        gap: 10px;
    }

    .site-actions > a,
    .site-actions > .account-menu {
        min-width: 0;
    }

    .site-action,
    .account-menu__trigger {
        justify-content: center;
        min-height: 58px;
        padding: 10px 8px;
        flex-direction: column;
        gap: 5px;
        background: #fff;
        border-color: var(--line);
    }

    .site-action--icon-only {
        width: 100%;
        min-width: 0;
    }

    .site-action__label {
        display: none;
    }

    .account-menu__trigger::after {
        display: none;
    }

    .icon-link {
        position: relative;
    }

    .icon-link span[id] {
        position: absolute;
        top: 6px;
        right: 8px;
        min-width: 22px;
        min-height: 22px;
        padding: 2px 6px;
        align-items: center;
        font-size: 0.8rem;
    }

    .account-menu__panel {
        left: 0;
        right: auto;
        min-width: min(260px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .category-bar {
        width: 100%;
    }

    .section-head {
        display: grid;
        justify-content: stretch;
        align-items: start;
        gap: 10px;
    }

    .section-head a {
        justify-self: start;
    }

    .section-head p {
        max-width: none;
    }

    .site-footer__inner {
        width: min(100% - 24px, 1200px);
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
        padding: 40px 0 28px;
    }

    .site-footer__bottom-inner {
        width: min(100% - 24px, 1200px);
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-legal-note {
        text-align: left;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-slider, .section-block, .account-card, .profile-card, .detail-sidebar, .admin-table-wrap {
        padding: 20px;
    }

    .detail-gallery {
        min-height: 420px;
    }

    .detail-gallery__item {
        padding: 14px;
    }

    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
    }

    .qty-form,
    .cart-item__total,
    .cart-item__remove-form {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .cart-item__remove-form {
        margin-top: -6px;
    }

    .carousel-shell {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-carousel {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .product-carousel, .image-upload-grid, .hero-slide-admin-grid {
        grid-auto-columns: 100%;
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .carousel-item {
        flex: 0 0 min(86vw, 340px);
        min-width: 0;
    }

    .product-card__body {
        padding: 16px;
    }

    .product-gallery {
        aspect-ratio: 1 / 1;
    }

    .product-gallery__image {
        padding: 10px;
    }

    .carousel-arrow {
        display: none;
    }
}

/* ============================================================
   ACCOUNT NAV — Profil, Siparişler, Adresler, Favoriler
   ============================================================ */

.account-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.account-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.account-nav__item:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-color: var(--line);
}

.account-nav__item.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* ============================================================
   STATUS MESSAGES — başarı / hata varyantları
   ============================================================ */

.status-message--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #a9efc5;
}

.status-message--error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdc9;
}

/* ============================================================
   CHECKOUT SAYFASI
   ============================================================ */

.checkout-page {
    display: grid;
    gap: 28px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: start;
}

.checkout-form {
    display: grid;
    gap: 20px;
}

.checkout-section {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}

.checkout-section h2 {
    font-size: 1.15rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.checkout-actions {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   YASAL ONAY BÖLÜMÜ
   ============================================================ */

.legal-consent-section {
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: #fffdf7;
    border: 1px solid #f6d860;
    box-shadow: var(--shadow);
    display: grid;
    gap: 20px;
}

.legal-consent-section h2 {
    font-size: 1.1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #f6e99a;
    color: #78350f;
}

.legal-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.legal-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.97rem;
    cursor: pointer;
    gap: 10px;
}

.legal-box__header svg {
    flex-shrink: 0;
    transition: transform 0.22s;
}

.legal-box__header[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.legal-box__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.legal-box__body.is-open {
    max-height: 420px;
    overflow-y: auto;
}

.legal-box__content {
    padding: 18px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--muted);
    display: grid;
    gap: 12px;
}

.legal-box__content h3 {
    font-size: 0.92rem;
    color: var(--text);
    margin: 0;
}

.legal-box__content p, .legal-box__content li {
    margin: 0;
}

.legal-box__content ul {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 4px;
}

.legal-consent-checks {
    display: grid;
    gap: 12px;
}

.legal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    cursor: pointer;
    line-height: 1.55;
}

.legal-check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Ödeme yöntemi seçim listesi */
.payment-method-list {
    display: grid;
    gap: 12px;
}

/* Adres kart gövde içi */
.address-select-card__body {
    display: grid;
    gap: 4px;
}

.address-select-card__body strong {
    font-size: 1rem;
}

.address-select-card__body span {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.address-select-card__billing {
    font-style: italic;
}

.address-select-card--default {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Checkout sağ özet paneli */
.checkout-summary {
    position: sticky;
    top: 120px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}

.checkout-summary h2 {
    font-size: 1.15rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.checkout-items {
    display: grid;
    gap: 14px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.checkout-item__img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fafafa;
    padding: 4px;
}

.checkout-item__detail {
    display: grid;
    gap: 2px;
}

.checkout-item__name {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
}

.checkout-item__qty {
    font-size: 0.85rem;
    color: var(--muted);
}

.checkout-item__total {
    font-size: 0.95rem;
    white-space: nowrap;
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 4px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--muted);
}

.summary-row--total {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   CHECKOUT — Responsive
   ============================================================ */

@media (max-width: 1100px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 720px) {
    .checkout-actions {
        flex-direction: column;
        gap: 10px;
    }

    .checkout-actions a,
    .checkout-actions button {
        width: 100%;
        justify-content: center;
    }

    .checkout-item {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }
}

/* ============================================================
   PROFILE PAGE — Hesap navigasyonu ile birlikte düzeltmeler
   ============================================================ */

.profile-page {
    gap: 0;
}

.section-title {
    margin-bottom: 8px;
}

/* Sipariş başarı mesajı animasyonu */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.status-message--success {
    animation: fadeInDown 0.35s ease;
}

/* ══════════════════════════════════════════════════════════
   ŞİRKET AYARLARI (Company Settings) ADMIN SAYFASI
   ══════════════════════════════════════════════════════════ */

/* Fullbleed wrapper — layout'un dışında, tam genişlikte */
.cs-fullbleed-hero {
    margin-bottom: 0;
}

/* ── Hero Bant ─────────────────────────────────────────── */
.cs-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a3367 55%, #2563eb 100%);
    padding: 48px 0 0;
    position: relative;
    overflow: hidden;
}

.cs-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cs-hero__inner {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.cs-hero__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,.2);
}

.cs-hero__title {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.cs-hero__desc {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    max-width: 500px;
    line-height: 1.7;
    margin: 0;
}

.cs-hero__desc strong {
    color: #93c5fd;
    font-weight: 600;
}

.cs-hero__logo-box {
    flex-shrink: 0;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    padding: 20px 30px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cs-hero__logo-img {
    max-height: 68px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cs-hero__logo-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

/* Hero istatistik bant */
.cs-hero__stats {
    background: rgba(0,0,0,.25);
    border-top: 1px solid rgba(255,255,255,.1);
    position: relative;
    z-index: 1;
}

.cs-hero__stats .cs-hero__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    align-items: stretch;
}

.cs-hstat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px 14px 0;
    color: rgba(255,255,255,.65);
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.cs-hstat svg {
    opacity: .6;
    flex-shrink: 0;
}

.cs-hstat--right {
    margin-left: auto;
    padding-right: 0;
}

/* ── Toast Bildirimi ───────────────────────────────────── */
.cs-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-weight: 600;
    font-size: 0.93rem;
    border-left: 4px solid;
    animation: csToastIn .35s ease;
}

.cs-toast--success {
    background: #f0fdf4;
    color: #15803d;
    border-color: #22c55e;
}

.cs-toast--error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #ef4444;
}

@keyframes csToastIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form ──────────────────────────────────────────────── */
.cs-form {
    display: flex;
    flex-direction: column;
}

/* ── İki Sütun Layout ──────────────────────────────────── */
.cs-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 28px;
    padding-top: 32px;
}

.cs-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Kart ──────────────────────────────────────────────── */
.cs-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(15,23,42,.05), 0 1px 4px rgba(15,23,42,.04);
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}

.cs-card:hover {
    box-shadow: 0 10px 40px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.05);
    transform: translateY(-2px);
}

.cs-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(to right, #f9faff, #fff);
}

.cs-card__head h2 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.cs-card__sub {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 2px 0 0;
    font-weight: 400;
}

.cs-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-card__icon--blue   { background: #eff6ff; color: #2563eb; }
.cs-card__icon--teal   { background: #f0fdfa; color: #0d9488; }
.cs-card__icon--green  { background: #f0fdf4; color: #16a34a; }
.cs-card__icon--orange { background: #fff7ed; color: #ea580c; }
.cs-card__icon--violet { background: #f5f3ff; color: #7c3aed; }

.cs-card__body {
    padding: 24px;
}

/* ── Logo Yükleme Alanı ────────────────────────────────── */
.cs-logo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    border: 2px dashed #c7d2fe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    min-height: 155px;
}

.cs-logo-drop:hover,
.cs-logo-drop.is-drag {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px #dbeafe;
}

.cs-logo-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.cs-logo-drop__icon-wrap {
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-logo-drop__title {
    font-weight: 700;
    font-size: 0.97rem;
    color: #1e293b;
}

.cs-logo-drop__sub {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.cs-logo-drop__hint {
    font-size: 0.82rem;
    color: var(--muted);
}

.cs-logo-drop__preview {
    max-height: 88px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

/* ── Alan Grupları ─────────────────────────────────────── */
.cs-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cs-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cs-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cs-field-row--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.cs-field label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cs-lbl-req::after {
    content: ' *';
    color: #dc2626;
    font-weight: 700;
}

.cs-field input,
.cs-field .cs-sel select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.93rem;
    color: var(--text);
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.cs-field input:focus,
.cs-field .cs-sel select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #dbeafe;
}

.cs-field input::placeholder {
    color: #c1c9d4;
    font-weight: 400;
}

.cs-mono {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace !important;
    letter-spacing: .04em;
}

/* Select özel ok */
.cs-sel {
    position: relative;
}

.cs-sel select {
    padding-right: 36px;
    cursor: pointer;
}

.cs-sel__arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
}

/* İkon-lu input */
.cs-icon-input {
    position: relative;
}

.cs-icon-input input {
    padding-left: 40px;
}

.cs-icon-input__icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* ── Kaydet Çubuğu ─────────────────────────────────────── */
.cs-savebar {
    position: sticky;
    bottom: 0;
    z-index: 90;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 28px rgba(15,23,42,.09);
    margin-top: 36px;
}

.cs-savebar__inner {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
}

.cs-savebar__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cs-savebar__note {
    font-size: 0.82rem;
    color: var(--muted);
}

.cs-req-star {
    color: #dc2626;
    font-weight: 700;
}

.cs-savebar__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cs-savebar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
    transition: transform .15s, box-shadow .15s;
}

.cs-savebar__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,99,235,.45);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cs-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cs-hero__logo-box {
        display: none;
    }

    .cs-savebar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cs-savebar__right {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-savebar__btn,
    .cs-savebar__back {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .cs-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cs-field-row,
    .cs-field-row--3 {
        grid-template-columns: 1fr;
    }

    .cs-card__body {
        padding: 18px 16px;
    }

    .cs-hstat--right {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMİN PANELİ — YENİ SEKMELI TASARIM  (adm-*)
═══════════════════════════════════════════════════════════════════ */

/* Hero bar */
.adm-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    color: #fff;
    padding: 2rem 0;
}
.adm-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.adm-hero__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.adm-hero__logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    padding: 6px;
}
.adm-hero__logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}
.adm-hero__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.adm-hero__sub {
    font-size: 0.88rem;
    opacity: 0.7;
    margin: 0.15rem 0 0;
}
.adm-hero__kpis {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.adm-kpi {
    text-align: center;
    padding: 0 1.5rem;
}
.adm-kpi--sep {
    border-left: 1px solid rgba(255,255,255,0.18);
}
.adm-kpi__val {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.adm-kpi__lbl {
    display: block;
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 2px;
}

/* Toast */
.adm-toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 1280px;
    margin: 0.75rem auto;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}
.adm-toast--ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.adm-toast--err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.adm-toast__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}
.adm-toast__close:hover { opacity: 1; }

/* Shell */
.adm-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
}

/* Sekme navigasyonu */
.adm-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.adm-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.adm-tab:hover { color: #4338ca; background: #f5f3ff; }
.adm-tab--active { color: #4338ca; border-bottom-color: #4338ca; background: #f5f3ff; }
.adm-badge {
    background: #4338ca;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Tab panes */
.adm-pane { display: none; }
.adm-pane--active { display: block; }

/* Section head */
.adm-section-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.adm-section-head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}
.adm-section-head p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    flex: 1;
}

.adm-product-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.adm-product-search-wrap > svg {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    pointer-events: none;
}
.adm-product-search {
    width: 100%;
    max-width: 360px;
    padding-left: 36px !important;
}
.adm-product-search-count {
    font-size: 0.83rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Grafik kartları */
.adm-chart-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.adm-chart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.adm-chart-title { font-weight: 600; font-size: 0.95rem; color: #111827; }
.adm-chart-sub   { font-size: 0.8rem; color: #9ca3af; }
.adm-chart-wrap  { height: 220px; }

/* Stat kartları */
.adm-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.adm-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.15s;
}
.adm-stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.adm-stat-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-stat-card__icon--blue   { background: #ede9fe; color: #6366f1; }
.adm-stat-card__icon--green  { background: #d1fae5; color: #10b981; }
.adm-stat-card__icon--purple { background: #f3e8ff; color: #9333ea; }
.adm-stat-card__icon--orange { background: #ffedd5; color: #f97316; }
.adm-stat-card__icon--teal   { background: #ccfbf1; color: #0d9488; }
.adm-stat-card__icon--pink   { background: #fce7f3; color: #ec4899; }
.adm-stat-card__info strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}
.adm-stat-card__info span {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Tablo */
.adm-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.adm-table thead tr { background: #f9fafb; }
.adm-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.adm-table td {
    padding: 0.85rem 1rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: #fafafa; }
.adm-table__id { color: #9ca3af; font-size: 0.8rem; }
.adm-table__amount { font-weight: 600; color: #111827; }

/* Sipariş durum badge */
.adm-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.adm-status--bekliyor, .adm-status--pending   { background: #fef9c3; color: #854d0e; }
.adm-status--onaylandi, .adm-status--approved  { background: #d1fae5; color: #065f46; }
.adm-status--iptal, .adm-status--cancelled     { background: #fee2e2; color: #991b1b; }
.adm-status--kargoda, .adm-status--shipped     { background: #dbeafe; color: #1e40af; }
.adm-status--teslim, .adm-status--delivered    { background: #f0fdf4; color: #166534; }

/* Kullanıcı satır */
.adm-user-cell { display: flex; align-items: center; gap: 0.6rem; }
.adm-user-cell__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}
.adm-user-cell__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd6fe;
    color: #6d28d9;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Ürün küçük görsel */
.adm-product-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Row actions */
.adm-row-actions { display: flex; gap: 0.4rem; align-items: center; }

/* Butonlar */
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
}
.adm-btn:active { transform: scale(0.97); }
.adm-btn--primary {
    background: #4338ca;
    color: #fff;
    box-shadow: 0 2px 8px rgba(67,56,202,0.25);
}
.adm-btn--primary:hover { background: #3730a3; color: #fff; }
.adm-btn--ghost {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.adm-btn--ghost:hover { background: #e5e7eb; color: #111827; }
.adm-btn--danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.adm-btn--danger:hover { background: #fecaca; }
.adm-btn--sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; border-radius: 6px; }
.adm-btn--outline { background: transparent; color: #6366f1; border: 1px solid #6366f1; }
.adm-btn--outline:hover { background: #6366f1; color: #fff; }
.adm-btn--lg { padding: 0.75rem 2rem; font-size: 0.95rem; }

/* Boş durum */
.adm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
    font-size: 0.9rem;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
}

/* Kart */
.adm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.adm-card__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}
.adm-inline-form { display: flex; flex-direction: column; gap: 0.75rem; }
.adm-form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.adm-form-row--checks { align-items: center; }
.adm-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; cursor: pointer; }
.adm-check input { accent-color: #4338ca; width: 15px; height: 15px; }
.adm-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.adm-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.adm-input--file { padding: 0.45rem 0.75rem; }
.adm-input--textarea { resize: vertical; min-height: 64px; }

/* Kategoriler */
.adm-cat-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.adm-cat-chip {
    display: flex;
    flex-direction: column;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
}
.adm-cat-chip__name { font-weight: 600; font-size: 0.85rem; color: #4338ca; }
.adm-cat-chip__flags { display: flex; gap: 0.4rem; margin-top: 3px; flex-wrap: wrap; }
.adm-flag {
    font-size: 0.7rem;
    background: #ede9fe;
    color: #6d28d9;
    border-radius: 6px;
    padding: 1px 6px;
}

/* Slider */
.adm-slide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.adm-slide-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.adm-slide-card__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.adm-slide-card__body {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.adm-slide-card__alt { font-size: 0.8rem; color: #6b7280; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Şirket bilgileri — iki sütun */
.adm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}
.adm-col { display: flex; flex-direction: column; }
.adm-field-group { display: flex; flex-direction: column; gap: 0.9rem; }
.adm-field { display: flex; flex-direction: column; gap: 0.3rem; }
.adm-field label { font-size: 0.8rem; font-weight: 600; color: #374151; }
.adm-field-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.adm-req { color: #dc2626; }
.adm-opt { color: #9ca3af; font-weight: 400; }
.adm-val-err { color: #dc2626; font-size: 0.75rem; }

/* Logo drop */
.adm-logo-drop {
    border: 2px dashed #c4b5fd;
    border-radius: 12px;
    background: #faf5ff;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}
.adm-logo-drop:hover, .adm-logo-drop--over {
    border-color: #7c3aed;
    background: #f3e8ff;
}
.adm-logo-drop__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.adm-logo-drop__placeholder {
    text-align: center;
    padding: 1.5rem;
    color: #7c3aed;
    pointer-events: none;
}
.adm-logo-drop__placeholder p { margin: 0.4rem 0 0.2rem; font-size: 0.85rem; font-weight: 500; }
.adm-logo-drop__placeholder span { font-size: 0.75rem; opacity: 0.65; }
.adm-logo-drop__preview {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    padding: 8px;
    pointer-events: none;
}
.adm-logo-url { font-size: 0.75rem; color: #9ca3af; margin-top: 0.4rem; word-break: break-all; }
.adm-logo-url code { background: #f3f4f6; border-radius: 4px; padding: 1px 4px; font-size: 0.72rem; }

/* Save bar */
.adm-search-bar {
    margin-bottom: 1rem;
    max-width: 480px;
}
.adm-search-form { width: 100%; }
.adm-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 0 0 0.85rem;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.adm-search-input-wrap:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.adm-search-icon { color: #9ca3af; flex-shrink: 0; }
.adm-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: #111827;
    flex: 1;
    padding: 0.55rem 0.5rem;
    min-width: 0;
}
.adm-search-input::placeholder { color: #9ca3af; }
.adm-search-btn {
    flex-shrink: 0;
    border: none;
    background: #6366f1;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0 1.1rem;
    height: 38px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}
.adm-search-btn:hover { background: #4f46e5; }

.adm-savebar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 0 0;
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.adm-savebar__note { font-size: 0.8rem; color: #9ca3af; margin-right: auto; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .adm-hero__inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .adm-hero__kpis  { gap: 0; width: 100%; overflow-x: auto; }
    .adm-kpi { padding: 0 1rem; min-width: 80px; }
    .adm-two-col { grid-template-columns: 1fr; }
    .adm-shell { padding: 1rem 1rem 3rem; }
}
@media (max-width: 640px) {
    .adm-tabs { gap: 0; overflow-x: auto; }
    .adm-tab  { padding: 0.55rem 0.7rem; font-size: 0.78rem; }
    .adm-stat-grid { grid-template-columns: 1fr 1fr; }
    .adm-section-head { flex-direction: column; align-items: flex-start; }
    .adm-field-2col { grid-template-columns: 1fr; }
    .adm-slide-grid { grid-template-columns: 1fr 1fr; }
    .adm-chart-wrap { height: 160px; }
}

/* ===============================================================
   SIPARI� FLTRE BAR
=============================================================== */
.adm-filter-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.adm-filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.adm-filter-label { font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.adm-input--sm { padding: 0.42rem 0.75rem; font-size: 0.88rem; border-radius: 8px; }
.adm-filter-count { font-size: 0.82rem; color: #6366f1; font-weight: 600; margin-left: auto; align-self: center; }
.adm-cargo-no { font-size: 0.8rem; font-family: monospace; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; color: #374151; }
.adm-muted { color: #9ca3af; }

/* ===============================================================
   SPAR� DETAY MODAL (odm-*)
=============================================================== */
.odm-backdrop {
    position: fixed; inset: 0; z-index: 900;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2vh 1rem;
    overflow-y: auto;
}
.odm-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    max-height: 96vh;
    overflow: hidden;
}
.odm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
    flex-shrink: 0;
}
.odm-title { font-size: 1.15rem; font-weight: 700; color: #111827; margin: 0 0 4px; }
.odm-close {
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: #6b7280; cursor: pointer; padding: 4px 8px; border-radius: 6px;
    transition: background .15s;
}
.odm-close:hover { background: #f3f4f6; color: #111827; }
.odm-body { padding: 1.5rem 1.75rem; overflow-y: auto; flex: 1; }
.odm-two-col { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; }
.odm-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1rem;
}
.odm-card:last-child { margin-bottom: 0; }
.odm-card__title {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: #6b7280; margin: 0 0 0.85rem;
}
.odm-items-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.odm-items-table th { background: #f3f4f6; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; padding: 6px 10px; text-align: left; border-bottom: 1px solid #e5e7eb; }
.odm-items-table td { padding: 8px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.odm-items-table tfoot td { border-top: 2px solid #e5e7eb; padding-top: 10px; }
.odm-total { font-size: 1rem; color: #6366f1; }
.odm-product-cell { display: flex; align-items: center; gap: 8px; }
.odm-product-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; flex-shrink: 0; }
.odm-addr-block { font-size: 0.9rem; line-height: 1.7; color: #374151; }
.odm-addr-block p { margin: 0; }
.odm-field-group { display: flex; flex-direction: column; gap: 0.75rem; }
.odm-field { display: flex; flex-direction: column; gap: 0.3rem; }
.odm-field label { font-size: 0.78rem; font-weight: 600; color: #6b7280; }
.odm-meta { font-size: 0.78rem; color: #9ca3af; margin: 4px 0 0; }
.odm-invoice-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; color: #6366f1; font-weight: 600;
    margin-bottom: 0.75rem; text-decoration: none;
}
.odm-invoice-link:hover { text-decoration: underline; }
.odm-actions { display: flex; gap: 0.75rem; padding-top: 0.5rem; flex-wrap: wrap; }
.odm-form .adm-input { width: 100%; box-sizing: border-box; }

/* �� Sevk belgesi (yazd�rma i�in) �� */
.ship-doc { padding: 1.5rem; }
.ship-doc__header { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; }
.ship-doc__logo { height: 48px; margin-right: 12px; vertical-align: middle; }
.ship-doc__meta { text-align: right; font-size: 12px; line-height: 1.6; }
.ship-doc__section { margin-bottom: 16px; }
.ship-doc__section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #555; margin: 0 0 6px; }
.ship-doc__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ship-doc__table th, .ship-doc__table td { border: 1px solid #ddd; padding: 6px 8px; text-align: left; }
.ship-doc__table th { background: #f5f5f5; }
.ship-doc__footer { border-top: 1px solid #ddd; margin-top: 24px; padding-top: 8px; font-size: 11px; color: #777; text-align: center; }

/* �� Responsive �� */
@media (max-width: 860px) {
    .odm-two-col { grid-template-columns: 1fr; }
    .odm-panel { border-radius: 12px; }
}
@media (max-width: 540px) {
    .adm-filter-bar { flex-direction: column; align-items: stretch; }
    .odm-body { padding: 1rem; }
    .odm-header { padding: 1rem; }
}

/* ===============================================================
   S�PAR�� DETAY SAYFASI (od-*)
=============================================================== */

/* Hero banner */
.od-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
    border-bottom: 3px solid rgba(99,102,241,0.4);
    padding: 0;
}
.od-hero__inner {
    width: min(1300px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}
.od-hero__left { display: flex; flex-direction: column; gap: .6rem; }
.od-back {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7);
    text-decoration: none; transition: color .15s;
}
.od-back:hover { color: #fff; }
.od-hero__info {}
.od-hero__title {
    font-size: 1.65rem; font-weight: 800; color: #fff; margin: 0;
    letter-spacing: -.03em;
}
.od-hero__title span { color: #a5b4fc; }
.od-hero__meta {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .35rem;
}
.od-hero__meta svg { opacity: .7; }
.od-hero__right { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* B�y�k badge (hero'da) */
.od-badge--lg { font-size: .88rem; padding: .4rem 1rem; font-weight: 700; }

/* Hero button */
.od-hero-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.25rem; border-radius: 10px; font-size: .875rem;
    font-weight: 600; cursor: pointer; border: none; transition: background .15s, transform .1s;
    text-decoration: none;
}
.od-hero-btn:active { transform: scale(.97); }
.od-hero-btn--pdf { background: #ef4444; color: #fff; }
.od-hero-btn--pdf:hover { background: #dc2626; }

/* Toast */
.od-toast {
    display: flex; align-items: center; gap: .6rem;
    padding: .8rem 1.2rem; border-radius: 10px; font-size: .875rem;
    font-weight: 500; margin-bottom: 1.25rem;
}
.od-toast--ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.od-toast--err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Shell */
.od-shell {
    width: min(1300px, calc(100% - 48px));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* Grid */
.od-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}
.od-col-main {}
.od-col-side {}

/* Card */
.od-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0;
    margin-bottom: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.od-card:last-child { margin-bottom: 0; }
.od-card__head {
    display: flex; align-items: center; gap: .5rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f0f0f5;
    background: #f9fafb;
}
.od-card__head h3 {
    margin: 0; font-size: .875rem; font-weight: 700;
    color: #374151; letter-spacing: -.01em;
}
.od-card__head svg { color: #6366f1; flex-shrink: 0; }
.od-card__head--accent { background: #eef2ff; border-bottom-color: #c7d2fe; }
.od-card__head--accent svg { color: #4f46e5; }
.od-card__head--green { background: #ecfdf5; border-bottom-color: #a7f3d0; }
.od-card__head--green svg { color: #059669; }
.od-card__head--orange { background: #fff7ed; border-bottom-color: #fed7aa; }
.od-card__head--orange svg { color: #ea580c; }

/* Description list */
.od-dl { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0; }
.od-dl__row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; padding: .55rem 0; border-bottom: 1px solid #f3f4f6;
}
.od-dl__row:last-child { border-bottom: none; }
.od-dl__row dt { font-size: .8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0; }
.od-dl__row dd { margin: 0; font-size: .9rem; color: #1f2937; text-align: right; }
.od-amount { color: #4f46e5; font-weight: 700; font-size: 1.05rem; }
.od-tracking-badge { background: #f3f4f6; font-family: monospace; font-size: .82rem; padding: .2rem .6rem; border-radius: 6px; color: #374151; }

/* Table */
.od-table { width: 100%; border-collapse: collapse; }
.od-table thead th {
    background: #f9fafb; text-align: left; padding: .65rem 1rem;
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.od-table tbody td {
    padding: .7rem 1rem; border-bottom: 1px solid #f3f4f6;
    font-size: .9rem; color: #374151; vertical-align: middle;
}
.od-table tbody tr:last-child td { border-bottom: none; }
.od-table__total td {
    background: #f9fafb; padding: .7rem 1rem;
    font-size: .9rem; font-weight: 700; color: #111827;
    border-top: 2px solid #e5e7eb;
}
.od-table__center { text-align: center; }
.od-table__right  { text-align: right; }
.od-muted { color: #9ca3af !important; }

/* Product cell */
.od-product-cell { display: flex; align-items: center; gap: .65rem; }
.od-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #e5e7eb; flex-shrink: 0; }
.od-thumb--placeholder { background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.od-qty-badge { background: #ede9fe; color: #5b21b6; font-weight: 700; font-size: .8rem; padding: .2rem .55rem; border-radius: 6px; }

/* Address block */
.od-address-block { padding: 1rem 1.25rem; font-size: .9rem; line-height: 1.8; color: #374151; }
.od-address-block p { margin: 0; }
.od-address-block__name { font-weight: 700; color: #111827; }
.od-address-block__label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6366f1; margin-bottom: .15rem; }

/* Label badge (order detail info tags) */
.od-label-badge {
    display: inline-block; padding: .2rem .65rem; border-radius: 6px;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    background: #ede9fe; color: #5b21b6;
}
.od-label-badge--blue { background: #eff6ff; color: #1d4ed8; }
.od-label-badge--orange { background: #fff7ed; color: #c2410c; }

/* Forms in side column */
.od-form { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; }
.od-field { display: flex; flex-direction: column; gap: .3rem; }
.od-field label { font-size: .78rem; font-weight: 600; color: #6b7280; }
.od-input {
    padding: .55rem .85rem; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .9rem; color: #111827; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.od-input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.od-select {
    appearance: none; padding: .55rem .85rem; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: .9rem; color: #111827; background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") right .85rem center / 12px no-repeat;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.od-select:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.od-textarea {
    padding: .55rem .85rem; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: .9rem; color: #111827; resize: vertical; min-height: 80px;
    transition: border-color .15s, box-shadow .15s;
}
.od-textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.od-file-input {
    border: 2px dashed #d1d5db; border-radius: 8px; padding: .6rem .85rem;
    font-size: .875rem; color: #374151; cursor: pointer; background: #fafafa;
    transition: border-color .15s;
}
.od-file-input:hover { border-color: #6366f1; }

/* Buttons */
.od-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .65rem 1.2rem; border-radius: 9px; font-size: .875rem;
    font-weight: 600; cursor: pointer; border: none; transition: background .15s, transform .1s;
}
.od-btn:active { transform: scale(.97); }
.od-btn--full { width: 100%; }
.od-btn--primary { background: #6366f1; color: #fff; }
.od-btn--primary:hover { background: #4f46e5; }
.od-btn--green   { background: #10b981; color: #fff; }
.od-btn--green:hover { background: #059669; }
.od-btn--orange  { background: #f97316; color: #fff; }
.od-btn--orange:hover { background: #ea580c; }

/* File link */
.od-file-link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: #6366f1; font-size: .85rem; font-weight: 600;
    text-decoration: none; margin: .75rem 1.25rem .25rem;
}
.od-file-link:hover { text-decoration: underline; }

/* Hint */
.od-hint { font-size: .78rem; color: #9ca3af; margin: 0; }

/* Badges */
.od-badge { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.od-badge--beklemede        { background: #fef3c7; color: #92400e; }
.od-badge--onaylandi        { background: #d1fae5; color: #065f46; }
.od-badge--hazirlaniyor     { background: #dbeafe; color: #1e40af; }
.od-badge--kargoya-verildi  { background: #ede9fe; color: #5b21b6; }
.od-badge--teslim-edildi    { background: #d1fae5; color: #065f46; }
.od-badge--iptal-edildi     { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 900px) {
    .od-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .od-hero__inner { padding: 1.2rem 0; }
    .od-hero__title { font-size: 1.3rem; }
    .od-shell { padding: 1.25rem 0 3rem; }
}

/* ?? Adres Formu: form-field ve telefon prefix ?? */
.form-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.form-field label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted, #555);
}

.field-error {
    color: #c0392b;
    font-size: .8rem;
}

/* Telefon input — 0 555 555 55 55 formatı */
[data-phone-input] {
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}

/* �� Checkout: Legal modal & form �� */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}
.legal-table td, .legal-table th {
    padding: 5px 10px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.5;
}
.legal-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 170px;
}
.legal-link-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: var(--accent, #6366f1);
    text-decoration: underline;
    cursor: pointer;
    line-height: inherit;
}
.legal-link-btn:hover { color: var(--accent-dark, #4f46e5); }
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.legal-modal.is-open { display: flex !important; }
.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    cursor: pointer;
}
.legal-modal__dialog {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    width: min(760px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn .22s cubic-bezier(.4,0,.2,1);
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-shrink: 0;
}
.legal-modal__head h2 { font-size: 1.05rem; margin: 0; font-weight: 700; color: #1e293b; }
.legal-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: .25rem .5rem;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.legal-modal__close:hover { background: #f1f5f9; color: #1e293b; }
.legal-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    font-size: .875rem;
    line-height: 1.7;
    color: #374151;
}
.legal-modal__body h3 {
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1e293b;
    margin: 1.25rem 0 .5rem;
    padding-bottom: .25rem;
    border-bottom: 1px solid #f1f5f9;
}
.legal-modal__body h3:first-child { margin-top: 0; }
.legal-modal__body p { margin: .5rem 0; }
.legal-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    flex-shrink: 0;
}
.checkout-order-btn {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    box-shadow: 0 4px 18px rgba(22,163,74,.35);
    font-size: 1.05rem;
    min-width: 260px;
    justify-content: center;
    transition: box-shadow .2s, transform .15s, opacity .2s;
}
.checkout-order-btn:not(:disabled):hover {
    box-shadow: 0 6px 24px rgba(22,163,74,.45);
    transform: translateY(-1px);
}
.checkout-order-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
@media (max-width: 600px) {
    .legal-modal__dialog { border-radius: 10px 10px 0 0; align-self: flex-end; max-height: 92vh; }
    .legal-modal__foot { flex-direction: column-reverse; }
    .legal-modal__foot .primary-button,
    .legal-modal__foot .secondary-button { width: 100%; justify-content: center; }
}
