:root {
    --mz-primary: #4f46e5;
    --mz-primary-soft: #eef2ff;
    --mz-accent: #0ea5e9;
    --mz-ink: #0f172a;
    --mz-muted: #64748b;
    --mz-line: #e2e8f0;
    --mz-soft: #f8fafc;
    --mz-card: #ffffff;
    --mz-ok: #059669;
    --mz-warn: #d97706;
    --mz-radius: 18px;
    --mz-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    /* eski ödeme / sepet sayfaları */
    --primary-color: var(--mz-primary);
    --primary-hover: #4338ca;
    --card-bg: var(--mz-card);
    --text-main: var(--mz-ink);
    --text-muted: var(--mz-muted);
    --border-color: var(--mz-line);
    --success: var(--mz-ok);
    --glass-border: var(--mz-line);
}

/* Mağaza sayfa zemini */
body.magaza-body {
    background:
        radial-gradient(900px 420px at 10% -10%, #e0e7ff 0%, transparent 55%),
        radial-gradient(700px 360px at 100% 0%, #e0f2fe 0%, transparent 50%),
        var(--mz-soft);
    color: var(--mz-ink);
}

.mz-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

/* Vitrin şeridi */
.mz-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.mz-hero-main {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
    color: #fff;
    border-radius: 28px;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
    min-height: 210px;
}

.mz-hero-main::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%);
    pointer-events: none;
}

.mz-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #c7d2fe;
    margin-bottom: 14px;
}

.mz-hero-main h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 16ch;
}

.mz-hero-main p {
    color: #cbd5e1;
    max-width: 42ch;
    font-size: 1.02rem;
    margin-bottom: 22px;
}

.mz-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mz-chip {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.mz-hero-side {
    display: grid;
    gap: 12px;
}

.mz-trust {
    background: var(--mz-card);
    border: 1px solid var(--mz-line);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: 0 4px 18px rgba(15,23,42,.04);
}

.mz-trust i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--mz-primary-soft);
    color: var(--mz-primary);
    flex-shrink: 0;
}

.mz-trust strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 2px;
}

.mz-trust span {
    color: var(--mz-muted);
    font-size: .82rem;
    line-height: 1.4;
}

/* Araç çubuğu */
.mz-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    padding: 12px 14px;
}

.mz-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.mz-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.mz-search input {
    width: 100%;
    border: 1px solid var(--mz-line);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px 12px 40px;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.mz-search input:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

.mz-toolbar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mz-muted);
    font-size: .9rem;
    font-weight: 600;
}

.mz-sort {
    border: 1px solid var(--mz-line);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--mz-ink);
    outline: none;
}

/* Mobil kategori şeridi */
.mz-cats-mobile {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.mz-cat-pill {
    flex: 0 0 auto;
    border: 1px solid var(--mz-line);
    background: #fff;
    color: var(--mz-muted);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mz-cat-pill.active,
.mz-cat-pill:hover {
    background: var(--mz-primary);
    border-color: var(--mz-primary);
    color: #fff;
}

/* Layout */
.showcase-container,
.mz-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

.sidebar,
.mz-sidebar {
    background: var(--mz-card);
    border: 1px solid var(--mz-line);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--mz-shadow);
    position: sticky;
    top: 110px;
}

.sidebar h3,
.mz-sidebar h3 {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mz-muted);
    margin-bottom: 12px;
    font-weight: 800;
}

.category-list {
    list-style: none;
}

.category-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 11px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
    cursor: pointer;
    transition: .2s ease;
    font-weight: 650;
    font-size: .92rem;
    color: var(--mz-muted);
    text-decoration: none;
}

.category-item:hover,
.category-item.active {
    background: var(--mz-primary-soft);
    color: var(--mz-primary);
}

.mz-sidebar-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid var(--mz-line);
    font-size: .82rem;
    color: var(--mz-muted);
    line-height: 1.5;
}

.mz-sidebar-note strong {
    display: block;
    color: var(--mz-ink);
    margin-bottom: 4px;
    font-size: .88rem;
}

/* Ürün grid */
.product-grid,
.mz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-card,
.mz-card {
    background: var(--mz-card);
    border: 1px solid var(--mz-line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.product-card:hover,
.mz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mz-shadow);
    border-color: #c7d2fe;
}

.product-image,
.mz-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img,
.mz-card-media img {
    max-width: 86%;
    max-height: 86%;
    object-fit: contain;
    transition: transform .35s ease;
}

.product-card:hover .product-image img,
.mz-card:hover .mz-card-media img {
    transform: scale(1.06);
}

.mz-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #0f172a;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}

.mz-badge.ok {
    background: #065f46;
}

.mz-card-overlay {
    position: absolute;
    inset: auto 12px 12px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: .25s ease;
    z-index: 2;
}

.product-card:hover .mz-card-overlay,
.mz-card:hover .mz-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.mz-view-btn {
    width: 100%;
    border: 0;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    padding: 11px;
    border-radius: 12px;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
}

.product-info,
.mz-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-title,
.mz-card-title {
    font-weight: 750;
    font-size: .98rem;
    color: var(--mz-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.35;
}

.mz-card-note {
    font-size: .8rem;
    color: var(--mz-muted);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer,
.mz-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.price,
.mz-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--mz-ink);
    letter-spacing: -.02em;
}

.mz-price small {
    font-size: .75rem;
    font-weight: 700;
    color: var(--mz-muted);
    margin-left: 2px;
}

.add-to-cart,
.mz-add {
    background: var(--mz-primary);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .2s ease;
    box-shadow: 0 8px 18px rgba(79, 70, 229, .28);
}

.add-to-cart:hover,
.mz-add:hover {
    transform: scale(1.06);
    background: #4338ca;
}

.mz-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--mz-line);
    border-radius: 22px;
    color: var(--mz-muted);
}

.mz-empty i {
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* Sepet */
.cart-drawer {
    position: fixed;
    right: -440px;
    top: 12px;
    bottom: 12px;
    width: 400px;
    max-width: calc(100vw - 24px);
    background: #fff;
    box-shadow: -20px 0 60px rgba(15,23,42,.18);
    z-index: 3000;
    transition: right .4s cubic-bezier(.4,0,.2,1);
    padding: 22px;
    border-radius: 24px 12px 12px 24px;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    right: 12px;
}

.mz-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.35);
    backdrop-filter: blur(2px);
    z-index: 2500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mz-cart-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.checkout-btn {
    width: 100%;
    padding: 1rem 1.1rem;
    background: var(--mz-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: .2s ease;
}

.checkout-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

/* Ürün detay */
.mz-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 70px;
}

.mz-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--mz-line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--mz-shadow);
}

.mz-gallery {
    background: linear-gradient(180deg, #fff, #f8fafc);
    padding: 28px;
    border-right: 1px solid var(--mz-line);
}

.mz-main-img {
    height: 460px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.mz-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mz-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mz-thumb {
    width: 68px;
    height: 68px;
    border: 1px solid var(--mz-line);
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    background: #fff;
}

.mz-thumb.active {
    border-color: var(--mz-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

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

.mz-info {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mz-bc {
    font-size: .85rem;
    color: #94a3b8;
}

.mz-bc a {
    color: inherit;
    text-decoration: none;
}

.mz-bc a:hover {
    color: var(--mz-primary);
}

.mz-info h1 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.mz-price-lg {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--mz-primary);
    letter-spacing: -.03em;
}

.mz-price-lg span {
    font-size: .95rem;
    vertical-align: super;
    margin-left: 4px;
}

.mz-desc-title {
    font-weight: 800;
    margin-bottom: 8px;
    display: inline-block;
    border-bottom: 2px solid var(--mz-primary);
    padding-bottom: 2px;
}

.mz-desc {
    color: #475569;
    line-height: 1.7;
}

.mz-meta {
    background: var(--mz-soft);
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    gap: 10px;
    font-size: .95rem;
}

.mz-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.mz-buy {
    flex: 2;
    background: var(--mz-primary);
    color: #fff;
    border: 0;
    border-radius: 14px;
    padding: 16px 18px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mz-buy:hover {
    background: #4338ca;
}

.mz-back {
    flex: 1;
    background: #fff;
    color: #475569;
    border: 1px solid var(--mz-line);
    border-radius: 14px;
    padding: 16px 18px;
    font-weight: 700;
    cursor: pointer;
}

.mz-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.mz-perk {
    border: 1px solid var(--mz-line);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    font-size: .78rem;
    color: var(--mz-muted);
    font-weight: 650;
}

.mz-perk i {
    display: block;
    color: var(--mz-primary);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

@media (max-width: 992px) {
    .mz-hero {
        grid-template-columns: 1fr;
    }
    .showcase-container,
    .mz-layout {
        grid-template-columns: 1fr;
    }
    .sidebar,
    .mz-sidebar {
        display: none;
    }
    .mz-cats-mobile {
        display: flex;
    }
    .mz-detail-grid {
        grid-template-columns: 1fr;
    }
    .mz-gallery {
        border-right: 0;
        border-bottom: 1px solid var(--mz-line);
    }
    .mz-main-img {
        height: 320px;
    }
    .mz-perks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mz-hero-main {
        padding: 28px 22px;
        border-radius: 22px;
    }
    .mz-actions {
        flex-direction: column;
    }
    .cart-drawer {
        top: 0;
        bottom: 0;
        right: -100%;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
    }
    .cart-drawer.active {
        right: 0;
    }
}
