﻿/* ── GENEL ───────────────────────────────────────── */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,.08);
    --header-h: 60px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding-top: 0;
}

.main-content {
    min-height: calc(100vh - 280px);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── HEADER TOPBAR ───────────────────────────────── */
.header-topbar {
    background: var(--text-dark);
    color: #cbd5e1;
    font-size: .82rem;
    padding: 6px 0;
}

.topbar-link {
    color: #94a3b8;
    transition: color .2s;
}

    .topbar-link:hover {
        color: #fff;
    }

/* ── HEADER MAIN ─────────────────────────────────── */
.header-main {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

    .site-logo:hover {
        color: var(--primary-dark);
    }

.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 24px;
}

    .header-search .form-control {
        border-radius: var(--radius) 0 0 var(--radius);
        border: 1.5px solid var(--border);
        padding: 10px 16px;
        font-size: .95rem;
    }

        .header-search .form-control:focus {
            border-color: var(--primary);
            box-shadow: none;
        }

.btn-search {
    background: var(--primary);
    color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    border: none;
    padding: 0 18px;
    font-size: 1rem;
    transition: background .2s;
}

    .btn-search:hover {
        background: var(--primary-dark);
    }

/* Sepet butonu */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    padding: 8px 18px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .2s;
    white-space: nowrap;
}

    .cart-btn:hover {
        background: var(--primary);
        color: #fff;
    }

    .cart-btn .bi-cart3 {
        font-size: 1.2rem;
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── NAV ─────────────────────────────────────────── */
.header-nav {
    background: var(--primary);
    padding: 0;
}

.nav-link-item {
    color: rgba(255,255,255,.88);
    padding: 12px 18px;
    font-size: .92rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: background .2s, color .2s;
    border-radius: 0;
}

    .nav-link-item:hover {
        background: rgba(255,255,255,.12);
        color: #fff;
    }

/* Kategoriler dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background .2s;
    border-radius: 0;
}

    .nav-dropdown-btn:hover {
        background: rgba(255,255,255,.25);
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 1000;
    padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: .92rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: background .15s;
}

    .nav-dropdown-menu .dropdown-item:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 56px 0 0;
    margin-top: 60px;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.footer-desc {
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background .2s, color .2s;
}

    .social-link:hover {
        background: var(--primary);
        color: #fff;
    }

.footer-title {
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #94a3b8;
        font-size: .88rem;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: #fff;
            padding-left: 4px;
        }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-contact li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        font-size: .88rem;
    }

    .footer-contact .bi {
        color: var(--primary);
        font-size: 1rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    margin-top: 40px;
    font-size: .84rem;
}

.footer-policy-link {
    color: #64748b;
    transition: color .2s;
}

    .footer-policy-link:hover {
        color: #fff;
    }

/* ── YARDIMCI ────────────────────────────────────── */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s, transform .15s;
}

    .btn-primary-custom:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-1px);
    }

/* ── HERO / SLIDER ───────────────────────────────── */
.hero-section {
    margin-bottom: 0;
}

.hero-slide,
.hero-default {
    height: 520px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,.75) 0%, rgba(15,23,42,.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 620px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: .88;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: background .2s, transform .15s;
}

    .btn-hero:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-2px);
    }

/* ── KATEGORİLER ─────────────────────────────────── */
.categories-section {
    padding: 48px 0 0;
    background: #fff;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    font-weight: 600;
    font-size: .9rem;
    transition: all .2s;
    min-width: 100px;
}

    .category-card i {
        font-size: 1.6rem;
        color: var(--primary);
    }

    .category-card:hover,
    .category-card.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(37,99,235,.25);
    }

        .category-card:hover i,
        .category-card.active i {
            color: #fff;
        }

.category-all {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── ÖĞELER BÖLÜM BAŞLIĞI ────────────────────────── */
.section-header {
    margin-bottom: 32px;
}

/* ── ÜRÜN KARTI ──────────────────────────────────── */
.featured-section {
    padding: 56px 0;
    background: var(--bg-light);
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(0,0,0,.12);
    }

.product-img-wrap {
    display: block;
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 3rem;
}

.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: .78rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

    .product-name a {
        color: var(--text-dark);
    }

        .product-name a:hover {
            color: var(--primary);
        }

.product-desc {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-old {
    font-size: .85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
}

.price-new {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    flex-shrink: 0;
}

    .btn-add-cart:hover {
        background: var(--primary);
        color: #fff;
        transform: scale(1.1);
    }

/* ── BOŞ DURUM ───────────────────────────────────── */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

    .empty-products .bi {
        font-size: 4rem;
        display: block;
        margin-bottom: 16px;
        opacity: .4;
    }

/* ── NEDEN BİZ ───────────────────────────────────── */
.features-section {
    padding: 56px 0;
    background: #fff;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

    .feature-card:hover {
        border-color: var(--primary);
        box-shadow: 0 8px 24px rgba(37,99,235,.1);
        transform: translateY(-4px);
    }

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--primary);
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: .88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── OUTLINE BUTON ───────────────────────────────── */
.btn-outline-primary-custom {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 9px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    transition: all .2s;
}

    .btn-outline-primary-custom:hover {
        background: var(--primary);
        color: #fff;
    }

/* ── TOAST BİLDİRİMİ ─────────────────────────────── */
.site-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius);
    font-size: .92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s;
}

    .site-toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .site-toast.toast-success .bi {
        color: #22c55e;
    }

    .site-toast.toast-error .bi {
        color: #ef4444;
    }

/* ── SEPET ───────────────────────────────────────── */
.cart-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-table thead tr {
        background: var(--bg-light);
        border-bottom: 2px solid var(--border);
    }

    .cart-table th {
        padding: 14px 16px;
        font-size: .85rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

.cart-item {
    border-bottom: 1px solid var(--border);
}

    .cart-item:last-child {
        border-bottom: none;
    }

.cart-img-cell {
    padding: 16px;
    width: 80px;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-img-placeholder {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.5rem;
}

.cart-name-cell {
    padding: 16px 12px;
}

.cart-item-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-unit {
    font-size: .82rem;
    color: var(--text-muted);
}

.cart-price,
.cart-total-price {
    padding: 16px 12px;
    display: block;
    white-space: nowrap;
}

.cart-total-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

/* Adet kontrolü */
.qty-form {
    display: flex;
    justify-content: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: .9rem;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

.qty-value {
    min-width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: .95rem;
    padding: 0 4px;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background .15s;
}

    .cart-remove-btn:hover {
        background: #fef2f2;
    }

/* Boş sepet */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

    .empty-cart .bi-cart-x {
        font-size: 5rem;
        color: #cbd5e1;
        display: block;
        margin-bottom: 20px;
    }

    .empty-cart h4 {
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--text-dark);
    }

    .empty-cart p {
        color: var(--text-muted);
        margin-bottom: 24px;
    }

/* Sipariş özeti kutusu */
.order-summary {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.summary-total {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-dark);
    border-bottom: none;
    margin-top: 4px;
}

.summary-note {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .84rem;
    line-height: 1.5;
    margin: 16px 0;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

    .btn-checkout:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-1px);
    }

/* ── CHECKOUT ────────────────────────────────────── */
.checkout-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.checkout-section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control-custom {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}

    .form-control-custom:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
        outline: none;
    }

.checkout-info-box {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: .88rem;
    color: #166534;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .checkout-item:last-of-type {
        border-bottom: none;
    }

.checkout-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-item-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-dark);
}

.checkout-item-qty {
    font-size: .8rem;
    color: var(--text-muted);
}

.checkout-item-total {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.summary-divider {
    border-top: 2px solid var(--border);
    margin: 12px 0;
}

/* ── SİPARİŞ BAŞARILI ────────────────────────────── */
.success-card {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 56px 40px;
    box-shadow: var(--shadow);
}

.success-icon {
    font-size: 5rem;
    color: #22c55e;
    margin-bottom: 20px;
    animation: popIn .5s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.success-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── ÜRÜNLER SAYFASI ─────────────────────────────── */
.products-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 36px 0;
    margin-bottom: 0;
}

.products-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.products-hero-sub {
    color: rgba(255,255,255,.75);
    margin: 0;
    font-size: .95rem;
}

/* Filtre kartı */
.filter-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 16px;
}

.filter-section {
    margin-bottom: 28px;
}

    .filter-section:last-child {
        margin-bottom: 0;
    }

.filter-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .filter-list li {
        margin-bottom: 4px;
    }

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: .9rem;
    transition: background .15s, color .15s;
}

    .filter-link:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

    .filter-link.active {
        background: var(--primary);
        color: #fff;
        font-weight: 600;
    }

/* Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.toolbar-count {
    color: var(--text-muted);
    font-size: .9rem;
}

.toolbar-sort {
    display: flex;
    align-items: center;
}

.sort-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .88rem;
    padding: 6px 10px;
}

    .sort-select:focus {
        border-color: var(--primary);
        box-shadow: none;
        outline: none;
    }

/* Sayfalama */
.pagination-wrap .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
    font-weight: 500;
    transition: all .15s;
}

.pagination-wrap .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-wrap .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── ÜRÜN DETAY ──────────────────────────────────── */
.detail-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

    .detail-main-img:hover {
        transform: scale(1.03);
    }

.detail-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 5rem;
    background: var(--bg-light);
    border-radius: 16px;
}

.detail-thumbs {
    display: flex;
    gap: 10px;
}

.detail-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color .15s;
}

    .detail-thumb.active,
    .detail-thumb:hover {
        border-color: var(--primary);
    }

.detail-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 8px;
}

.detail-sku {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-price-wrap {
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
}

.detail-price-new {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-discount-badge {
    background: #fef2f2;
    color: #ef4444;
    font-size: .82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.detail-short-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.stock-in {
    background: #f0fdf4;
    color: #16a34a;
}

.stock-out {
    background: #fef2f2;
    color: #ef4444;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.btn-detail-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .15s;
}

    .btn-detail-cart:hover:not(:disabled) {
        background: var(--primary-dark);
        transform: translateY(-1px);
    }

    .btn-detail-cart:disabled {
        background: #94a3b8;
        cursor: not-allowed;
    }

.detail-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--text-muted);
}

    .detail-feature .bi {
        color: var(--primary);
        font-size: 1rem;
    }

.detail-desc-section {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.detail-section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.detail-desc-body {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: .95rem;
}

/* ── AUTH SAYFALARI ──────────────────────────────── */
.auth-page {
    min-height: calc(100vh - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.auth-card-wide {
    max-width: 560px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

    .btn-auth:hover {
        background: var(--primary-dark);
        color: #fff;
        transform: translateY(-1px);
    }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .88rem;
    color: var(--text-muted);
}

    .auth-footer a {
        color: var(--primary);
        font-weight: 600;
        margin-left: 4px;
    }

/* ── PROFİL SAYFASI ──────────────────────────────── */
.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.profile-section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
}

.fw-600 {
    font-weight: 600;
}

/* Sipariş geçmişi */
.order-history-item {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color .15s;
}

    .order-history-item:hover {
        border-color: var(--primary);
    }

.order-history-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.order-history-id {
    font-weight: 700;
    color: var(--primary);
}

.order-history-date {
    font-size: .82rem;
    color: var(--text-muted);
    flex: 1;
}

.order-history-items {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .order-history-items span {
        background: var(--bg-light);
        padding: 2px 8px;
        border-radius: 20px;
        font-size: .8rem;
    }

.order-history-total {
    font-size: .88rem;
    color: var(--text-dark);
    text-align: right;
}

/* ── MOBİL NAVBAR ────────────────────────────────── */
.header-navbar {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.navbar-toggler {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    background: transparent;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: 100%;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.cart-btn-mobile {
    position: relative;
    color: var(--primary);
    font-size: 1.4rem;
    padding: 4px 8px;
}

    .cart-btn-mobile .cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ef4444;
        color: #fff;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: .68rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.mobile-menu {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 11px 8px;
    color: var(--text-dark);
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s, color .15s;
    text-decoration: none;
}

    .mobile-nav-item:hover {
        background: var(--primary-light);
        color: var(--primary);
        border-radius: 8px;
    }

    .mobile-nav-item.text-danger {
        color: #ef4444 !important;
    }

.mobile-nav-group-title {
    padding: 11px 8px;
    font-weight: 700;
    font-size: .85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
}

/* Mobilde hero küçült */
@media (max-width: 768px) {
    .hero-slide,
    .hero-default {
        height: 300px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: .9rem;
    }

    .order-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}