:root {
    --bg: #fff;
    --muted-bg: #f6f7f8;
    --text: #101828;
    --muted: #667085;
    --line: #eaecf0;
    --soft: #f2f4f7;
    --accent: #f97316;
    --shadow: 0 8px 22px rgba(16, 24, 40, .08);
    --shadow2: 0 18px 50px rgba(16, 24, 40, .18);
    --radius: 14px;
    --radius2: 18px;
    --container: 1700px;

    /* NEW tokens for product meta */
    --card-border: rgba(16, 24, 40, .08);
    --card-border-hover: rgba(16, 24, 40, .14);
    --chip-bg: rgba(16, 24, 40, .04);
    --chip-border: rgba(16, 24, 40, .10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background: var(--bg);
}

.hero {
    background: var(--muted-bg);
    padding: 60px 16px 54px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: .6;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 42px 16px 70px;
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: start;
}

/* Sidebar */
.sidebar .block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.cat-list a {
    text-decoration: none;
    color: #344054;
    font-size: 13.5px;
    line-height: 1.25;
    display: inline-block;
    padding: 2px 0;
}

.cat-list a.active {
    color: var(--accent);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 28px 0;
}

/* Accordion */
.acc-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
    color: #344054;
}

.acc {
    display: none;
    padding-top: 10px;
}

.acc.open {
    display: block;
}

/* Filters */
.filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.lbl {
    width: 40px;
    font-size: 13px;
    color: #475467;
}

.inp {
    width: 100%;
    border: 1px solid rgba(16, 24, 40, .12);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.check {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.check input {
    width: 16px;
    height: 16px;
}

.btn-filter {
    width: 100%;
    margin-top: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, .12);
    background: #101828;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-filter.ghost {
    background: #fff;
    color: #101828;
}

.filter-actions {
    margin-top: 10px;
}

/* Topbar */
.topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    margin: 2px 0 16px;
}

.results {
    color: var(--muted);
    font-size: 13px;
}

.sort {
    position: relative;
    width: 210px;
    user-select: none;
}

.sort button {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 38px 12px 14px;
    font-size: 13px;
    color: #344054;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(16, 24, 40, .04);
}

.chev {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    opacity: .7;
}

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    z-index: 20;
}

.sort.open .sort-menu {
    display: block;
}

.sort-item {
    font-size: 13px;
    color: #344054;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.sort-item:hover {
    background: var(--soft);
}

.sort-item.active {
    background: rgba(249, 115, 22, .12);
    color: #9a3412;
    font-weight: 600;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* Card */
.card {
    display: grid;
    gap: 12px;
    border-radius: var(--radius2);
}

.media {
    position: relative;
    background: #fff;
    border-radius: var(--radius2);
    padding: 18px;
    border: 1px solid #f1f2f4;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
    height: 390px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .18s ease;
}

.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(249, 115, 22, .25);
    z-index: 2;
}

.actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    display: grid;
    gap: 10px;
    transform: translateY(14px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
    z-index: 3;
}

.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 24, 40, .32), rgba(16, 24, 40, 0) 55%);
    opacity: 0;
    transition: .2s ease;
    z-index: 2;
}

.media:hover::after {
    opacity: 1;
}

.media:hover .actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(249, 115, 22, .28);
}

.btn-primary:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, .92);
    color: #101828;
    box-shadow: 0 10px 20px rgba(16, 24, 40, .10);
}

.btn-ghost:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: .95;
}

/* ===== NEW: Professional product name + price area ===== */
.meta {
    border: 1px solid var(--card-border);
    background: #fff;
    border-radius: 16px;
    padding: 12px 12px 12px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
    transition: .18s ease;
    display: grid;
    gap: 8px;
    margin-top: -11px;
    z-index: 99;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.card:hover .meta {
    border-color: var(--card-border-hover);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #344054;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-chip svg {
    width: 14px;
    height: 14px;
    opacity: .75;
    flex: 0 0 auto;
}

.title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.01em;
    color: #101828;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    min-height: calc(1.25em * 2);
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.price {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #101828;
    letter-spacing: -.01em;
}

.price .was {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #98a2b3;
    text-decoration: line-through;
}

.meta-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-badge {
    font-size: 11px;
    font-weight: 800;
    color: #9a3412;
    background: rgba(249, 115, 22, .14);
    border: 1px solid rgba(249, 115, 22, .26);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.meta-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #667085;
}

.meta-sub .stock.ok {
    color: #027a48;
    font-weight: 700;
}

.meta-sub .stock.no {
    color: #b42318;
    font-weight: 700;
}

/* Stars (if you use) */
.stars {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.star {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
    stroke: #f59e0b;
}

.star.muted {
    fill: #e5e7eb;
    stroke: #e5e7eb;
}

/* Load */
.loadbar {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.btn-load {
    width: auto;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-weight: 650;
    color: #344054;
    box-shadow: 0 10px 20px rgba(16, 24, 40, .06);
    transition: .15s ease;
}

.btn-load:hover {
    background: var(--soft);
    transform: translateY(-1px);
}

.btn-load[disabled] {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.hint {
    margin-top: 10px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Modal */
.modal-fulldesc {
    margin-top: 8px;
    color: #475467;
    line-height: 1.6;
    font-size: 13.5px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .50);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 999;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    width: min(980px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow2);
    overflow: hidden;
    transform: translateY(6px);
    opacity: 0;
    transition: .18s ease;
}

.modal-backdrop.open .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.modal-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal-close:hover {
    background: var(--soft);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    opacity: .75;
}

.modal-body {
    padding: 16px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 14px;
}

.modal-media {
    position: relative;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 16px;
    height: 490px;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow: hidden;
}

.modal-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .18s ease;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 24, 40, .12);
}

.slide-btn:hover {
    background: #fff;
}

.slide-btn svg {
    width: 18px;
    height: 18px;
    opacity: .8;
}

.slide-prev {
    left: 12px;
}

.slide-next {
    right: 12px;
}

.modal-info {
    display: grid;
    gap: 10px;
    align-content: start;
}

.modal-name {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.02em;
    margin: 0;
}

.modal-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #344054;
}

.modal-price .now {
    font-size: 18px;
    font-weight: 750;
    color: #101828;
}

.modal-price .was {
    font-size: 14px;
    color: #98a2b3;
    text-decoration: line-through;
}

.modal-desc {
    margin: 0;
    color: #475467;
    font-size: 13.5px;
    line-height: 1.6;
}

.qty {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
    align-items: center;
}

.qty button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.qty button:hover {
    background: var(--soft);
}

.qty input {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-size: 14px;
    text-align: center;
}

#qvAddToCart:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* Variant chip */
.variant-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    display: grid;
    gap: 8px;
}

.variant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.variant-title {
    font-weight: 750;
    color: #101828;
    font-size: 13px;
    letter-spacing: -.01em;
}

.variant-selected {
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
    text-align: right;
}

.variant-sub {
    font-size: 12px;
    color: #667085;
    margin-top: -2px;
}

.variant-groups {
    display: grid;
    gap: 8px;
}

.vg {
    padding: 8px;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 12px;
    background: #fff;
}

.vg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.vg-name {
    font-size: 12.5px;
    font-weight: 750;
    color: #344054;
}

.vg-req {
    font-size: 11px;
    color: #98a2b3;
}

.vg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vopt {
    border: 1px solid rgba(16, 24, 40, .14);
    background: #fff;
    color: #101828;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: all .12s ease;
}

.vopt:hover {
    border-color: rgba(16, 24, 40, .28);
    transform: translateY(-1px);
}

.vopt.active {
    background: #101828;
    color: #fff;
    border-color: #101828;
}

.variant-hint {
    font-size: 12px;
    color: #b42318;
    background: rgba(180, 35, 24, .06);
    border: 1px solid rgba(180, 35, 24, .15);
    padding: 8px 10px;
    border-radius: 10px;
}

/* Responsive */
@media (max-width:1060px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-media {
        height: 320px;
    }
}

@media (max-width:760px) {
    .layout {
        grid-template-columns: 1fr;
    }

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

    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width:420px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Category tree styles */
.cat-list ul.cat-sub {
    margin: 8px 0 0 0;
    padding-left: 14px;
    border-left: 1px solid rgba(16, 24, 40, .10);
}

.cat-list li {
    list-style: none;
}

.cat-list a.active {
    font-weight: 600;
}


/* ✅ Ek: Detay butonu ikon hizalama */
.actions .btn-ghost.js-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-decoration: none;
}

.actions .btn-ghost.js-detail svg {
    width: 18px;
    height: 18px;
}


/* ===================== SAME TOKENS (your category page) ===================== */
:root {
    --bg: #fff;
    --muted-bg: #f6f7f8;
    --text: #101828;
    --muted: #667085;
    --line: #eaecf0;
    --soft: #f2f4f7;
    --accent: #f97316;
    --shadow: 0 8px 22px rgba(16, 24, 40, .08);
    --shadow2: 0 18px 50px rgba(16, 24, 40, .18);
    --radius: 14px;
    --radius2: 18px;
    --container: 1700px;

    --card-border: rgba(16, 24, 40, .08);
    --card-border-hover: rgba(16, 24, 40, .14);
    --chip-bg: rgba(16, 24, 40, .04);
    --chip-border: rgba(16, 24, 40, .10);
}


/* hero */
.hero {
    background: var(--muted-bg);
    padding: 60px 16px 54px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: .6;
}

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 42px 16px 70px;
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: start;
}

@media(max-width:760px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }
}

/* sidebar */
.sidebar .block-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.cat-list a {
    text-decoration: none;
    color: #344054;
    font-size: 13.5px;
    line-height: 1.25;
    display: inline-block;
    padding: 2px 0;
}

.cat-list a.active {
    color: var(--accent);
    font-weight: 600;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 28px 0;
}

/* accordion */
.acc-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
    color: #344054;
}

.acc {
    display: none;
    padding-top: 10px;
}

.acc.open {
    display: block;
}

/* block container */
.block {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    padding: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
    background: #fff;
}

/* info rows */
.pinfo {
    display: grid;
    gap: 10px;
}

.pinfo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, .10);
    background: rgba(16, 24, 40, .02);
    font-size: 13px;
    color: #344054;
}

.pinfo-row span {
    color: #667085;
}

.pinfo-row b {
    font-weight: 750;
    color: #101828;
}

/* buttons (same as category) */
.btn-filter {
    width: 100%;
    margin-top: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 24, 40, .12);
    background: #101828;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn-filter.ghost {
    background: #fff;
    color: #101828;
}

.filter-actions {
    margin-top: 10px;
}

/* ===================== DETAIL LAYOUT ===================== */
.detail-card {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 22px;
    align-items: start;
}

@media(max-width:1060px) {
    .detail-card {
        grid-template-columns: 1fr;
    }
}

/* gallery box style same family */
.d-media {
    border: 1px solid var(--line);
    border-radius: var(--radius2);
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
    overflow: hidden;
}

.d-media-inner {
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    height: 520px;
    display: grid;
    place-items: center;
    padding: 18px;
}

@media(max-width:1060px) {
    .d-media-inner {
        height: 360px;
    }
}

.d-media-inner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .18s ease;
}

/* thumbs */
.thumbs {
    display: flex;
    gap: 10px;
    padding: 14px;
    overflow: auto;
}

.thumb {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, .12);
    background: #fff;
    cursor: pointer;
    place-items: center;
    overflow: hidden;
    transition: .12s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb:hover {
    transform: translateY(-1px);
}

.thumb.active {
    border-color: rgba(249, 115, 22, .45);
    box-shadow: 0 10px 18px rgba(249, 115, 22, .16);
}

/* slide buttons same as your modal */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(16, 24, 40, .12);
}

.slide-btn:hover {
    background: #fff;
}

.slide-btn svg {
    width: 18px;
    height: 18px;
    opacity: .8;
}

.slide-prev {
    left: 12px;
}

.slide-next {
    right: 12px;
}

/* right side */
.d-meta {
    display: grid;
    gap: 12px;
}

/* meta card: exactly your product card meta style */
.meta {
    border: 1px solid var(--card-border);
    background: #fff;
    border-radius: 16px;
    padding: 14px 14px 14px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
    transition: .18s ease;
    display: grid;
    gap: 10px;
}

.meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #344054;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-badge {
    font-size: 11px;
    font-weight: 800;
    color: #9a3412;
    background: rgba(249, 115, 22, .14);
    border: 1px solid rgba(249, 115, 22, .26);
    padding: 6px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.title {
    font-size: 18px;
    font-weight: 750;
    margin: 0;
    letter-spacing: -.02em;
    color: #101828;
    line-height: 1.25;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.price {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #101828;
    letter-spacing: -.01em;
}

.price .was {
    margin-left: 10px;
    font-size: 13px;
    font-weight: 650;
    color: #98a2b3;
    text-decoration: line-through;
}

.meta-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stock {
    font-size: 12px;
    font-weight: 800;
}

.stock.ok {
    color: #027a48;
}

.stock.no {
    color: #b42318;
}

.meta-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #667085;
}

/* short box */
.shortbox {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
    color: #475467;
    line-height: 1.6;
    font-size: 13.5px;
}

/* buy row */
/* ===================== FIX: BUYROW OVERLAP (qty üstüne binmesin) ===================== */
.buyrow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.buyrow .qty {
    flex: 0 0 300px;
    /* sabit genişlik */
    width: 100%;
    min-width: 300px;
    position: relative;
    z-index: 3;
    /* + butonu tıklanabilir olsun */
}

.buyrow #btnAddToCart {
    flex: 1 1 auto;
    /* kalan alanı kaplasın */
    min-width: 0;
    width: auto;
    position: relative;
    z-index: 1;
}

/* Eğer parent'ta transform/overflow click'i bozuyorsa */
.detail-card,
.d-meta,
.meta {
    overflow: visible;
}

.qty {
    position: relative;
    z-index: 3;
    /* tıklanabilirliği garanti et */
    width: 132px;
    flex: 0 0 132px;
}

.qty button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.qty button:hover {
    background: var(--soft);
}

.btn.btn-primary {
    position: relative;
    z-index: 2;
    min-width: 0;
    /* grid içinde taşma/üst üste binmeyi engeller */
    width: 100%;
}

@media (max-width:520px) {
    .buyrow {
        flex-wrap: wrap;
    }

    .buyrow .qty {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }

    .buyrow #btnAddToCart {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Eğer bir parent overflow/transform yüzünden click bozuluyorsa */
.detail-card,
.d-meta,
.meta {
    overflow: visible;
}

.qty input {
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 12px;
    font-size: 14px;
    text-align: center;
}

/* main button same family */
.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 22px rgba(249, 115, 22, .28);
    width: 100%;
}

.btn-primary:hover {
    filter: brightness(.98);
    transform: translateY(-1px);
}

.btn svg {
    width: 16px;
    height: 16px;
    opacity: .95;
}

#btnAddToCart:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* tabs */
.tabs {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
    overflow: hidden;
}

.tab-head {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid rgba(16, 24, 40, .12);
    background: #fff;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #344054;
}

.tab-btn.active {
    background: rgba(249, 115, 22, .12);
    color: #9a3412;
    border-color: rgba(249, 115, 22, .26);
}

.tab-body {
    padding: 14px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.html-content {
    color: #475467;
    line-height: 1.7;
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.html-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, .10);
}

.html-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* variant chip: your exact style */
.variant-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    display: grid;
    gap: 8px;
    box-shadow: 0 10px 22px rgba(16, 24, 40, .05);
}

.variant-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.variant-title {
    font-weight: 750;
    color: #101828;
    font-size: 13px;
    letter-spacing: -.01em;
}

.variant-selected {
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
    text-align: right;
}

.variant-sub {
    font-size: 12px;
    color: #667085;
    margin-top: -2px;
}

.variant-groups {
    display: grid;
    gap: 8px;
}

.vg {
    padding: 8px;
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 12px;
    background: #fff;
}

.vg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.vg-name {
    font-size: 12.5px;
    font-weight: 750;
    color: #344054;
}

.vg-req {
    font-size: 11px;
    color: #98a2b3;
}

.vg-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vopt {
    border: 1px solid rgba(16, 24, 40, .14);
    background: #fff;
    color: #101828;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: all .12s ease;
}

.vopt:hover {
    border-color: rgba(16, 24, 40, .28);
    transform: translateY(-1px);
}

.vopt.active {
    background: #101828;
    color: #fff;
    border-color: #101828;
}

.variant-hint {
    font-size: 12px;
    color: #b42318;
    background: rgba(180, 35, 24, .06);
    border: 1px solid rgba(180, 35, 24, .15);
    padding: 8px 10px;
    border-radius: 10px;
}

/* category tree styles (same) */
.cat-list ul.cat-sub {
    margin: 8px 0 0 0;
    padding-left: 14px;
    border-left: 1px solid rgba(16, 24, 40, .10);
}

.cat-list li {
    list-style: none;
}

.hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.sidebar-top {
    margin-bottom: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;



    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;

    transition: transform .15s ease, box-shadow .15s ease;
}

.btn-back:hover {
    transform: translateY(-1px);
}

.product-description {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.desc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.desc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.inp.is-invalid {
    border-color: rgba(180, 35, 24, .55) !important;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

/* ===================== SEPET SAYFASI - YENİ TASARIM ===================== */
.cart-container {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cart-content {
    background: var(--bg) !important;
    min-width: 0 !important;
}

.cart-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 24px !important;
}

.cart-header h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
}

.cart-count {
    font-size: 14px !important;
    color: var(--muted) !important;
}

/* Sepet Ürünleri */
.cart-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.cart-item {
    display: grid !important;
    grid-template-columns: 100px 1fr auto auto auto !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 20px !important;
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    transition: all 0.2s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cart-item:hover {
    border-color: var(--card-border-hover) !important;
    box-shadow: var(--shadow) !important;
}

.item-image {
    width: 100px !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--soft) !important;
    flex-shrink: 0 !important;
}

.item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.item-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.item-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin: 0 0 8px !important;
}

.item-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.item-title a:hover {
    color: var(--accent) !important;
}

.item-variant,
.item-sku {
    font-size: 13px !important;
    color: var(--muted) !important;
    margin-top: 4px !important;
}

.item-price {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-top: 8px !important;
}

/* Quantity Control */
.item-quantity {
    display: flex !important;
    justify-content: center !important;
}

.quantity {
    position: relative !important;
    width: 90px !important;
}

.qty-input {
    width: 100% !important;
    height: 42px !important;
    padding: 0 32px 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    background: var(--bg) !important;
    color: var(--text) !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
    cursor: default !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.qty-input[readonly] {
    background: var(--soft) !important;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.quantity-buttons {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: transparent !important;
}

.qty-btn {
    width: 24px !important;
    height: 19px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
}

.qty-btn:hover {
    color: var(--text) !important;
}

.qty-btn svg {
    width: 10px !important;
    height: 10px !important;
    pointer-events: none !important;
}

.qty-increase {
    border-bottom: 1px solid var(--line) !important;
}

/* Item Subtotal */
.item-subtotal {
    text-align: right !important;
    min-width: 100px !important;
}

.subtotal-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}

/* Remove Button */
.item-remove {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.remove-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
}

.remove-btn:hover {
    background: var(--soft) !important;
    color: #dc3545 !important;
}

.remove-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* Sepet Özeti */
.cart-summary {
    position: sticky !important;
    top: 20px !important;
    width: 100% !important;
}

.summary-card {
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    box-shadow: var(--shadow) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.summary-card h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 0 20px !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
}

.summary-row.total {
    padding: 16px 0 0 !important;
    border-top: 2px solid var(--line) !important;
    margin-top: 12px !important;
}

.summary-label {
    font-size: 15px !important;
    color: var(--text) !important;
}

.summary-row.total .summary-label {
    font-weight: 600 !important;
    font-size: 16px !important;
}

.summary-value {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.summary-row.total .summary-value {
    font-size: 20px !important;
    font-weight: 700 !important;
}

.summary-divider {
    height: 1px !important;
    background: var(--line) !important;
    margin: 8px 0 !important;
}

.summary-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 24px !important;
}

/* Butonlar */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-primary {
    background: var(--accent) !important;
    color: #fff !important;
}

.btn-primary:hover {
    background: #ea6605 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.btn-secondary {
    background: var(--soft) !important;
    color: var(--text) !important;
}

.btn-secondary:hover {
    background: var(--line) !important;
    color: var(--text) !important;
}

/* Boş Sepet */
.cart-empty {
    text-align: center !important;
    padding: 80px 20px !important;
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
}

.empty-icon {
    font-size: 64px !important;
    margin-bottom: 20px !important;
}

.cart-empty h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 0 12px !important;
}

.cart-empty p {
    font-size: 15px !important;
    color: var(--muted) !important;
    margin: 0 0 24px !important;
}

/* Hata Mesajı */
.cart-error {
    padding: 40px 20px !important;
    text-align: center !important;
    background: #fff5f5 !important;
    border: 1px solid #feb2b2 !important;
    border-radius: var(--radius) !important;
    color: #c53030 !important;
}

.cart-loading {
    padding: 60px 20px !important;
    text-align: center !important;
    color: var(--muted) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .cart-summary {
        position: static !important;
        order: -1 !important;
        width: 100% !important;
    }

    .summary-card {
        margin-bottom: 24px !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    .wrap {
        padding: 24px 16px !important;
    }

    .cart-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-content {
        width: 100% !important;
    }

    .cart-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }

    .cart-header h2 {
        font-size: 20px !important;
    }

    .cart-items {
        gap: 12px !important;
    }

    .cart-item {
        grid-template-columns: 80px 1fr !important;
        gap: 12px !important;
        padding: 16px !important;
        position: relative !important;
    }

    .item-image {
        width: 80px !important;
        height: 80px !important;
        grid-row: 1 / 3 !important;
    }

    .item-details {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding-right: 40px !important;
    }

    .item-title {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .item-variant,
    .item-sku {
        font-size: 12px !important;
    }

    .item-price {
        font-size: 15px !important;
        margin-top: 6px !important;
    }

    .item-quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        margin-top: 8px !important;
    }

    .quantity {
        width: 80px !important;
    }

    .item-subtotal {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: center !important;
        margin-top: 8px !important;
        min-width: auto !important;
    }

    .subtotal-amount {
        font-size: 16px !important;
    }

    .item-remove {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .remove-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .cart-summary {
        position: static !important;
        width: 100% !important;
    }

    .summary-card {
        padding: 20px !important;
        width: 100% !important;
    }

    .summary-card h3 {
        font-size: 18px !important;
        margin-bottom: 16px !important;
    }

    .summary-row {
        padding: 10px 0 !important;
    }

    .summary-actions {
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .cart-empty {
        padding: 60px 20px !important;
    }

    .empty-icon {
        font-size: 48px !important;
        margin-bottom: 16px !important;
    }

    .cart-empty h3 {
        font-size: 20px !important;
    }

    .cart-empty p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 20px 12px !important;
    }

    .hero {
        padding: 40px 16px 36px !important;
    }

    .hero h1 {
        font-size: 28px !important;
    }

    .cart-header h2 {
        font-size: 18px !important;
    }

    .cart-item {
        padding: 12px !important;
        gap: 10px !important;
    }

    .item-image {
        width: 70px !important;
        height: 70px !important;
    }

    .item-title {
        font-size: 14px !important;
    }

    .item-price {
        font-size: 14px !important;
    }

    .quantity {
        width: 70px !important;
    }

    .qty-input {
        height: 36px !important;
        font-size: 13px !important;
        padding: 0 28px 0 10px !important;
    }

    .subtotal-amount {
        font-size: 15px !important;
    }

    .summary-card {
        padding: 16px !important;
    }

    .summary-card h3 {
        font-size: 16px !important;
    }

    .summary-value {
        font-size: 14px !important;
    }

    .summary-row.total .summary-value {
        font-size: 18px !important;
    }

    .btn {
        padding: 11px 18px !important;
        font-size: 13px !important;
    }
}

/* ===================== TOAST NOTIFICATION ===================== */
.toast-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    max-width: 400px !important;
    width: calc(100% - 40px) !important;
    transform: translateX(120%) !important;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    pointer-events: none !important;
}

.toast-notification.toast-show {
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.toast-content {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    border-left: 4px solid var(--accent) !important;
    position: relative !important;
    overflow: hidden !important;
}

.toast-notification.toast-success .toast-content {
    border-left-color: #22c55e !important;
}

.toast-notification.toast-error .toast-content {
    border-left-color: #ef4444 !important;
}

.toast-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    color: var(--accent) !important;
}

.toast-notification.toast-success .toast-icon {
    color: #22c55e !important;
}

.toast-notification.toast-error .toast-icon {
    color: #ef4444 !important;
}

.toast-message {
    flex: 1 !important;
    min-width: 0 !important;
}

.toast-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 4px !important;
}

.toast-text {
    font-size: 13px !important;
    color: var(--muted) !important;
    line-height: 1.5 !important;
}

.toast-close {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    margin-top: 2px !important;
}

.toast-close:hover {
    background: var(--soft) !important;
    color: var(--text) !important;
}

.toast-close svg {
    width: 16px !important;
    height: 16px !important;
}

@media (max-width: 480px) {
    .toast-notification {
        top: 16px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: none !important;
    }

    .toast-content {
        padding: 14px 18px !important;
    }

    .toast-title {
        font-size: 14px !important;
    }

    .toast-text {
        font-size: 12px !important;
    }
}

/* ===================== GİRİŞ SAYFASI ===================== */
.login-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 0;
}

.login-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin: 0 0 32px;
}

.auth-form {
    width: 100%;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-form .required {
    color: #ef4444;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.password-toggle:hover {
    background: var(--soft);
    color: var(--text);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #ea6605;
    text-decoration: underline;
}

.form-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c53030;
    font-size: 14px;
}

.btn-full {
    width: 100%;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.login-footer a:hover {
    color: #ea6605;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 0;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-card h2 {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===================== LOGIN POPUP TASARIMI ===================== */
#trx_addons_login_popup.trx_addons_popup {
    max-width: 500px !important;
    width: 90% !important;
    margin: 0 auto !important;
    background: var(--bg) !important;
    border-radius: var(--radius) !important;
    padding: 0 !important;
    box-shadow: var(--shadow2) !important;
}

.popup-auth-wrapper {
    padding: 32px;
}

/* Tabs */
.trx_addons_tabs_titles {
    display: flex !important;
    gap: 0 !important;
    margin: 0 0 32px !important;
    padding: 0 !important;
    list-style: none !important;
    border-bottom: 2px solid var(--line) !important;
}

.trx_addons_tabs_title {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.trx_addons_tabs_title .tab-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    color: var(--muted) !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: all 0.2s !important;
    background: transparent !important;
}

.trx_addons_tabs_title.active .tab-link,
.trx_addons_tabs_title .tab-link:hover {
    color: var(--accent) !important;
    border-bottom-color: var(--accent) !important;
}

.trx_addons_tabs_title_icon {
    font-size: 18px !important;
}

/* Tab Content */
.trx_addons_tabs_content {
    display: none !important;
}

.trx_addons_tabs_content.active {
    display: block !important;
}

/* Form Fields */
.trx_addons_popup_form {
    width: 100% !important;
}

.trx_addons_popup_form_field {
    margin-bottom: 20px !important;
}

.trx_addons_popup_form_field label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
}

.trx_addons_popup_form_field .required {
    color: #ef4444 !important;
}

.input-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.input-wrapper .input-icon {
    position: absolute !important;
    left: 14px !important;
    color: var(--muted) !important;
    font-size: 18px !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.trx_addons_popup_form_field input[type="email"],
.trx_addons_popup_form_field input[type="password"],
.trx_addons_popup_form_field input[type="text"] {
    width: 100% !important;
    padding: 12px 16px 12px 44px !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    color: var(--text) !important;
    background: var(--bg) !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.trx_addons_popup_form_field input:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: var(--muted) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    z-index: 1 !important;
}

.password-toggle-btn:hover {
    background: var(--soft) !important;
    color: var(--text) !important;
}

.password-toggle-btn i {
    font-size: 18px !important;
}

/* Remember Me */
.trx_addons_popup_form_field_remember {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}

.trx_addons_popup_form_field_remember .checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: var(--text) !important;
    margin: 0 !important;
}

.trx_addons_popup_form_field_remember input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: var(--accent) !important;
}

.forgot-password-link {
    color: var(--accent) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.2s !important;
}

.forgot-password-link:hover {
    color: #ea6605 !important;
    text-decoration: underline !important;
}

/* Error Message */
.form-error-message {
    background: #fff5f5 !important;
    border: 1px solid #feb2b2 !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    color: #c53030 !important;
    font-size: 14px !important;
}

/* Submit Button */
.trx_addons_popup_form_field_submit {
    margin-bottom: 0 !important;
    margin-top: 24px !important;
}

.submit_button {
    width: 100% !important;
    padding: 14px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
}

.submit_button.btn-primary {
    background: var(--accent) !important;
    color: #fff !important;
}

.submit_button.btn-primary:hover {
    background: #ea6605 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3) !important;
}

.submit_button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Message Box */
.trx_addons_message_box.sc_form_result {
    margin-top: 16px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    text-align: center !important;
}

.trx_addons_message_box.sc_form_result:empty {
    display: none !important;
}

/* MFP Overlay */
.mfp-bg {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
}

.mfp-container {
    padding: 20px !important;
}

/* Responsive */
@media (max-width: 480px) {
    .popup-auth-wrapper {
        padding: 24px 20px !important;
    }

    .trx_addons_tabs_title .tab-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .trx_addons_tabs_title_icon {
        font-size: 16px !important;
    }

    .trx_addons_popup_form_field_remember {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

/* ===================== ÖDEME SAYFASI ===================== */
.checkout-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Steps */
.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--soft);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid var(--line);
}

.progress-step.active .step-number {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.step-label {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--text);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 10px;
    margin-top: -24px;
}

.progress-step.active~.progress-step .progress-line {
    background: var(--line);
}

/* Checkout Steps */
.checkout-step {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.checkout-step h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px;
}

.step-content {
    width: 100%;
}

/* Order Items */
.order-items {
    margin-bottom: 24px;
}

.order-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--soft);
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.order-item .item-variant {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.order-item-price {
    font-size: 13px;
    color: var(--muted);
}

.order-item-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

.order-summary {
    background: var(--soft);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.order-summary .summary-row.total {
    border-top: 2px solid var(--line);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.order-summary .summary-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 0;
}

.order-loading,
.order-empty,
.order-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

/* Form Styles */
.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input:disabled {
    background: var(--soft);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: block;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s;
    background: var(--bg);
}

.payment-method input[type="radio"]:checked+.payment-method-content {
    border-color: var(--accent);
    background: rgba(249, 115, 22, 0.05);
}

.payment-method-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.payment-method-desc {
    font-size: 13px;
    color: var(--muted);
}

/* Bank Info */
.bank-info {
    background: var(--soft);
    border-radius: 10px;
    padding: 20px;
}

.bank-account {
    margin-bottom: 16px;
}

.bank-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-label {
    font-size: 14px;
    color: var(--muted);
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    font-family: monospace;
}

.info-box {
    background: #fff9e6;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #92400e;
}

.info-box strong {
    font-weight: 600;
}

/* Confirmation */
.confirmation-message {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.confirmation-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.order-number {
    font-size: 18px;
    color: var(--text);
    margin: 16px 0;
}

.confirmation-message>p {
    font-size: 15px;
    color: var(--muted);
    margin: 12px 0;
    line-height: 1.6;
}

.confirmation-info {
    background: var(--soft);
    border-radius: 10px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.confirmation-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}

.confirmation-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-info li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.confirmation-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.step-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

.step-actions .btn {
    min-width: 140px;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-progress {
        padding: 0 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .step-label {
        font-size: 11px;
    }

    .checkout-step {
        padding: 24px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }

    .payment-method-content {
        padding: 14px 16px;
    }

    .order-item {
        gap: 12px;
    }

    .order-item-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .checkout-progress {
        padding: 0 5px;
    }

    .progress-line {
        margin: 0 5px;
    }

    .checkout-step {
        padding: 20px 16px;
    }

    .checkout-step h2 {
        font-size: 20px;
    }
}

/* ===================== KULLANICI SAYFALARI ===================== */
.profile-container,
.orders-container,
.installment-container,
.cargo-container {
    margin: 40px auto;
    padding: 0 20px;
}

.profile-card,
.orders-card,
.installment-card,
.cargo-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-card h2,
.orders-card h2,
.installment-card h2,
.cargo-card h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--text, #101828);
}

.profile-subtitle,
.orders-subtitle,
.installment-subtitle,
.cargo-subtitle {
    color: var(--muted, #667085);
    margin: 0 0 30px 0;
}

.profile-info {
    margin: 30px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text, #101828);
}

.info-value {
    color: var(--muted, #667085);
}

.profile-note {
    margin-top: 20px;
    padding: 15px;
    background: #f6f7f8;
    border-radius: 8px;
    color: var(--muted, #667085);
    font-size: 14px;
}

.orders-empty,
.installment-empty,
.cargo-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted, #667085);
}

.orders-empty p,
.installment-empty p,
.cargo-empty p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

@media (max-width: 768px) {

    .profile-container,
    .orders-container,
    .installment-container,
    .cargo-container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .profile-card,
    .orders-card,
    .installment-card,
    .cargo-card {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===================== PROFİL SAYFASI ===================== */
.profile-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--line, #eaecf0);
    margin: 0 auto 40px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 900px;
    justify-content: center;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.profile-tab {
    padding: 16px 28px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted, #667085);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: -2px;
    white-space: nowrap;
    position: relative;
}

.profile-tab::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent, #f97316);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-tab:hover {
    color: var(--text, #101828);
    background: var(--soft, #f2f4f7);
}

.profile-tab.active {
    color: var(--accent, #f97316);
    font-weight: 600;
}

.profile-tab.active::before {
    transform: scaleX(1);
}

.profile-content {
    position: relative;
}

.profile-tab-content {
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 40px;
    box-shadow: var(--shadow, 0 8px 22px rgba(16, 24, 40, .08));
    border: 1px solid var(--line, #eaecf0);
    transition: box-shadow 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
}

.profile-section:hover {
    box-shadow: var(--shadow2, 0 18px 50px rgba(16, 24, 40, .18));
}

.profile-section h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #101828);
    letter-spacing: -0.3px;
}

.section-subtitle {
    color: var(--muted, #667085);
    margin: 0 0 32px 0;
    font-size: 15px;
    line-height: 1.6;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line, #eaecf0);
}

.section-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 20px;
}

/* İletişim Tercihleri */
.preferences-form {
    max-width: 700px;
    margin: 0 auto;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: var(--soft, #f2f4f7);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 2px solid var(--line, #eaecf0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preference-item:hover {
    border-color: var(--accent, #f97316);
    background: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
}

.preference-info {
    flex: 1;
    padding-right: 20px;
}

.preference-info h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #101828);
}

.preference-info p {
    margin: 0;
    font-size: 13px;
    color: var(--muted, #667085);
    line-height: 1.5;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--accent, #f97316);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

input:focus+.slider {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.slider:active:before {
    width: 28px;
}

.profile-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text, #101828);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-group .required {
    color: #dc2626;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--line, #eaecf0);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent, #f97316);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
    transform: translateY(-1px);
}

.form-group input:disabled {
    background: var(--muted-bg, #f6f7f8);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted, #667085);
    line-height: 1.5;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--soft, #f2f4f7);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent, #f97316);
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent, #f97316);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--soft, #f2f4f7);
    color: var(--text, #101828);
    border: 2px solid var(--line, #eaecf0);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--muted-bg, #f6f7f8);
    border-color: var(--accent, #f97316);
    color: var(--accent, #f97316);
    transform: translateY(-1px);
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.form-message::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
}

/* Address List */
.addresses-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.address-card {
    background: linear-gradient(135deg, #fff 0%, var(--soft, #f2f4f7) 100%);
    border: 2px solid var(--line, #eaecf0);
    border-radius: var(--radius, 12px);
    padding: 16px 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent, #f97316);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.address-card:hover {
    border-color: var(--accent, #f97316);
    box-shadow: var(--shadow, 0 4px 12px rgba(16, 24, 40, .06));
    transform: translateY(-2px);
}

.address-card:hover::before {
    transform: scaleY(1);
}

.address-card.default {
    border-color: var(--accent, #f97316);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.04) 0%, rgba(249, 115, 22, 0.01) 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

.address-card.default::before {
    transform: scaleY(1);
}

.default-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent, #f97316);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.25);
    z-index: 1;
}

.address-content {
    margin-bottom: 12px;
    padding-right: 0;
}

.address-content h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #101828);
    letter-spacing: -0.2px;
}

.address-content p {
    margin: 3px 0;
    font-size: 13px;
    color: var(--muted, #667085);
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-top: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.address-actions .btn {
    padding: 4px 10px !important;
    font-size: 11px !important;
    min-width: auto;
    white-space: nowrap;
    flex: 1 1 0;
    max-width: calc(50% - 3px);
    box-sizing: border-box !important;
}

.address-form {
    background: linear-gradient(135deg, #fff 0%, var(--soft, #f2f4f7) 100%);
    border: 2px solid var(--line, #eaecf0);
    border-radius: var(--radius, 14px);
    padding: 32px;
    margin-top: 24px;
    box-shadow: var(--shadow, 0 8px 22px rgba(16, 24, 40, .08));
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.address-form h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #101828);
    letter-spacing: -0.3px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted, #667085);
}

.loading-state::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--line, #eaecf0);
    border-top-color: var(--accent, #f97316);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted, #667085);
    background: var(--soft, #f2f4f7);
    border-radius: var(--radius, 14px);
    border: 2px dashed var(--line, #eaecf0);
}

.empty-state::before {
    content: '📍';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: var(--radius, 14px);
    border: 2px solid #fecaca;
}

.error-state::before {
    content: '⚠️';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

.error-state p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-page-container {
        margin: 0 auto;
        padding: 0 12px 40px;
    }

    .profile-tabs {
        margin: 0 auto 24px;
        padding: 0 12px;
        border-radius: 0;
        max-width: 100%;
    }

    .profile-tab {
        padding: 14px 20px;
        font-size: 14px;
    }

    .profile-section {
        padding: 24px 20px;
        border-radius: 12px;
        margin: 0;
    }

    .profile-section h2 {
        font-size: 18px;
    }

    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .preference-info {
        padding-right: 0;
        width: 100%;
    }

    .switch {
        align-self: flex-end;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 16px;
    }

    .preferences-form {
        max-width: 100%;
    }

    .preference-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .preference-info {
        padding-right: 0;
        width: 100%;
    }

    .switch {
        align-self: flex-end;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .profile-form {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="password"],
    .form-group textarea {
        padding: 12px 16px;
        font-size: 14px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .addresses-list {
        gap: 10px;
    }

    .address-card {
        padding: 14px 16px;
    }

    .address-content {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .address-content h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .address-content p {
        font-size: 12px;
        margin: 2px 0;
    }

    .default-badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .address-actions {
        gap: 4px;
        margin-top: 6px;
        flex-wrap: nowrap;
    }

    .address-actions .btn {
        padding: 3px 8px;
        font-size: 10px;
        flex: 0 0 auto;
    }

    .address-form {
        padding: 24px 20px;
        margin-top: 16px;
    }

    .address-form h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .loading-state,
    .empty-state,
    .error-state {
        padding: 40px 16px;
    }

    .empty-state p,
    .error-state p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .profile-page-container {
        padding: 0 8px 32px;
    }

    .profile-tabs {
        margin: 0 auto 20px;
        padding: 0 8px;
        max-width: 100%;
    }

    .profile-tab {
        padding: 12px 16px;
        font-size: 13px;
    }

    .profile-section {
        padding: 20px 16px;
    }

    .profile-section h2 {
        font-size: 18px;
    }

    .preference-item {
        padding: 16px;
    }

    .preference-info h3 {
        font-size: 15px;
    }

    .preference-info p {
        font-size: 12px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 9px 18px;
        font-size: 12px;
    }
}

/* ===================== ONAY MODAL ===================== */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.confirm-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow2, 0 18px 50px rgba(16, 24, 40, .18));
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.confirm-modal-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #101828);
    letter-spacing: -0.3px;
}

.confirm-modal-message {
    margin: 0 0 24px 0;
    font-size: 15px;
    color: var(--muted, #667085);
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-modal-actions .btn {
    min-width: 120px;
}

@media (max-width: 480px) {
    .confirm-modal-content {
        padding: 24px 20px;
        max-width: 100%;
    }

    .confirm-modal-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .confirm-modal-title {
        font-size: 18px;
    }

    .confirm-modal-message {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .confirm-modal-actions {
        flex-direction: column;
    }

    .confirm-modal-actions .btn {
        width: 100%;
    }
}

/* ===================== BİLDİRİM MODALLARI (showNotify / showConfirm) ===================== */
.smartx-notify-wrap,
.smartx-confirm-wrap {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

.smartx-notify-wrap.is-open,
.smartx-confirm-wrap.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.smartx-notify-overlay,
.smartx-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.smartx-notify-box,
.smartx-confirm-box {
    position: relative;
    background: #fff;
    cursor: default;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.2);
    text-align: center;
    animation: smartxModalIn 0.25s ease;
}

@keyframes smartxModalIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.smartx-notify-icon,
.smartx-confirm-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.smartx-notify-icon--success {
    background: #dcfce7;
    color: #16a34a;
}

.smartx-notify-icon--error {
    background: #fee2e2;
    color: #dc2626;
}

.smartx-notify-icon--warning {
    background: #fef3c7;
    color: #d97706;
}

.smartx-notify-icon--info {
    background: #e0f2fe;
    color: #0284c7;
}

.smartx-confirm-icon {
    background: #f3f4f6;
    color: #4b5563;
}

.smartx-notify-title,
.smartx-confirm-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.smartx-notify-msg,
.smartx-confirm-msg {
    margin: 0 0 24px;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.55;
}

.smartx-notify-actions,
.smartx-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.smartx-notify-ok,
.smartx-confirm-ok,
.smartx-confirm-cancel {
    min-width: 100px;
}

@media (max-width: 480px) {

    .smartx-notify-box,
    .smartx-confirm-box {
        padding: 24px 20px;
    }

    .smartx-notify-actions,
    .smartx-confirm-actions {
        flex-direction: column;
    }

    .smartx-notify-ok,
    .smartx-confirm-ok,
    .smartx-confirm-cancel {
        width: 100%;
    }
}

/* Ödeme Sayfası Adres Listesi */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.address-card-minimal {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.address-card-minimal:hover {
    border-color: #f97316;
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.08);
}

.address-card-minimal input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #f97316;
    margin: 0;
}

/* Adres Modal */
#addressModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#addressModal>div {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#addressModal h3 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
}

#closeAddressModal {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

#closeAddressModal:hover {
    background: #f3f4f6;
    color: #111;
}

@media (max-width: 768px) {
    #addressModal>div {
        padding: 20px;
        max-height: 95vh;
    }

    .address-card-minimal {
        padding: 10px;
    }
}