/* ============================================================
   Ulus Ticaret - Ana Stil Dosyasi
   Sade, hafif ve mobil uyumlu tasarim
   ============================================================ */

:root {
    --primary: #f27a1a;
    --primary-dark: #d9660b;
    --primary-light: #fff3e8;
    --text: #1f2328;
    --text-soft: #5c6570;
    --line: #e6e8eb;
    --bg: #f5f6f8;
    --white: #ffffff;
    --green: #17a34a;
    --red: #dc2626;
    --blue: #2563eb;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-lg: 0 6px 20px rgba(16, 24, 40, .12);
    --container: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.3; font-weight: 600; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }

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

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    text-align: center;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-outline {
    background: #fff;
    border-color: var(--line);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-dark { background: #1f2328; }
.btn-dark:hover { background: #000; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--green); }
.btn-success:hover { background: #12833b; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Ust bar ---------- */
.topbar {
    background: #1f2328;
    color: #cfd3d8;
    font-size: 12.5px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    gap: 16px;
}
.topbar a { color: #cfd3d8; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 16px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 0;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    letter-spacing: -.3px;
}
.logo span { color: var(--text); }

.search-form {
    flex: 1;
    display: flex;
    max-width: 620px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: border-color .15s;
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
    flex: 1;
    border: 0;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}
.search-form button {
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}
.search-form button:hover { background: var(--primary-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.header-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}
.header-btn:hover { background: var(--bg); color: var(--text); }
.header-btn .ico { font-size: 17px; line-height: 1; }
.cart-badge {
    position: absolute;
    top: 2px;
    left: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ---------- Menu ---------- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
    display: block;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid transparent;
}
.nav-list > li:hover > a,
.nav-list > li > a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 200;
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text-soft);
}
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

/* ---------- Bildirimler ---------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13.5px;
    border: 1px solid;
}
.alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.alert-error   { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.alert-info    { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }

/* ---------- Sayfa duzeni ---------- */
main { min-height: 55vh; padding: 20px 0 40px; }

.breadcrumb {
    font-size: 12.5px;
    color: var(--text-soft);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-body { padding: 20px; }
.card-title {
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    font-size: 15px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 14px;
    gap: 12px;
}
.section-head h2 { margin: 0; font-size: 18px; }
.section-head a { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ---------- Slider / Banner ---------- */
.hero {
    background: linear-gradient(100deg, #2b2f36, #4a5058);
    border-radius: var(--radius);
    color: #fff;
    padding: 44px 36px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero h2 { color: #fff; font-size: 28px; margin-bottom: 8px; max-width: 620px; }
.hero p { color: #d6d9dd; font-size: 15px; max-width: 560px; }
.hero .btn { margin-top: 14px; align-self: flex-start; }
.hero-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 12px 0 4px;
}
.hero-dots button {
    width: 8px; height: 8px; padding: 0;
    border-radius: 50%;
    border: 0;
    background: #c8ccd2;
    cursor: pointer;
}
.hero-dots button.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ---------- Ozellik seridi ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.feature .ico { font-size: 22px; }
.feature strong { display: block; font-size: 13.5px; }
.feature small { color: var(--text-soft); font-size: 12px; }

/* ---------- Kategori kutulari ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.cat-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: border-color .15s, transform .15s;
}
.cat-box:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--primary); }
.cat-box .ico { font-size: 26px; display: block; margin-bottom: 8px; }

/* ---------- Urun kartlari ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .15s, border-color .15s;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: #d5d8dd; }
.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .2s;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--red);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}
.fav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #98a2b3;
    cursor: pointer;
}
.fav-badge:hover, .fav-badge.on { color: var(--red); border-color: #fecdca; }
.stock-out {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-soft);
    letter-spacing: .5px;
}

.product-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.product-brand { font-size: 11.5px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .4px; }
.product-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 17px; font-weight: 700; color: var(--text); }
.price-old { font-size: 12.5px; color: #98a2b3; text-decoration: line-through; }
.product-card .btn { margin-top: 4px; }

.stars { color: #d0d5dd; font-size: 13px; letter-spacing: 1px; }
.stars .star.on { color: #f5a623; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }

/* ---------- Filtre + liste duzeni ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}
.sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    position: sticky;
    top: 92px;
}
.sidebar h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-soft);
    margin: 18px 0 8px;
}
.sidebar h3:first-child { margin-top: 0; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text-soft);
}
.filter-list li a:hover { background: var(--bg); }
.filter-list li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.filter-list .sub { padding-left: 12px; }
.filter-list .sub a { font-size: 13px; }

.price-filter { display: flex; gap: 6px; align-items: center; }
.price-filter input { width: 100%; }

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.toolbar .count { font-size: 13px; color: var(--text-soft); }
.toolbar select {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
}

/* ---------- Formlar ---------- */
.form-row { margin-bottom: 14px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}
.form-row .req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], input[type=search], input[type=url], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(242, 122, 26, .12);
}
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-hint { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}
.check input { width: auto; margin-top: 2px; }

.auth-wrap { max-width: 420px; margin: 30px auto; }
.auth-wrap .card-body { padding: 26px; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13.5px;
}
.auth-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* "veya" ayraci ve Google ile devam et dugmesi */
.auth-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 12.5px;
}
.auth-sep::before,
.auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border: 1px solid #dadce0;
    border-radius: var(--radius);
    background: #fff;
    color: #3c4043;
    font-size: 14px;
    font-weight: 600;
}
.btn-google:hover { background: #f7f8f8; border-color: #c6c9cc; color: #3c4043; }

/* ---------- Urun detay ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.gallery-main {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fafbfc;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 64px; height: 64px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    background: #fff;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); }

.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.detail-price .price-now { font-size: 30px; color: var(--primary); }
.detail-meta { font-size: 13px; color: var(--text-soft); display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-desc { color: var(--text-soft); font-size: 13.5px; margin: 14px 0; }

.qty-box { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-box button {
    width: 36px;
    border: 0;
    background: #fafbfc;
    font-size: 17px;
    cursor: pointer;
    color: var(--text-soft);
    font-family: inherit;
}
.qty-box button:hover { background: var(--line); }
.qty-box input {
    width: 52px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    padding: 8px 0;
    border-radius: 0;
}
.qty-box input:focus { box-shadow: none; }
.buy-row { display: flex; gap: 10px; align-items: center; margin: 18px 0; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 26px 0 0; }
.tabs button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    font-family: inherit;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding: 20px 2px; font-size: 14px; }
.tab-panel.active { display: block; }
.tab-panel ul { padding-left: 20px; }

.review {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.review:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review-head strong { font-size: 13.5px; }
.review-date { font-size: 12px; color: var(--text-soft); }

/* ---------- Sepet ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item img {
    width: 90px; height: 90px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 6px;
}
.cart-item .name { font-size: 14px; font-weight: 500; margin-bottom: 4px; display: block; }
.cart-item .unit { font-size: 12.5px; color: var(--text-soft); }
.cart-actions { display: flex; align-items: center; gap: 14px; }
.cart-line-total { font-size: 16px; font-weight: 700; min-width: 110px; text-align: right; }
.remove-link { color: var(--text-soft); font-size: 12.5px; }
.remove-link:hover { color: var(--red); }

.summary { position: sticky; top: 92px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text-soft);
}
.summary-row.total {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.summary-row .free { color: var(--green); font-weight: 600; }
.coupon-form { display: flex; gap: 6px; margin: 12px 0; }
.coupon-form input { flex: 1; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-soft);
}
.empty-state .ico { font-size: 46px; display: block; margin-bottom: 12px; opacity: .6; }
.empty-state h3 { color: var(--text); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
table.data th, table.data td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data th {
    background: #fafbfc;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-soft);
    white-space: nowrap;
}
table.data tbody tr:hover { background: #fcfcfd; }
table.data td.right, table.data th.right { text-align: right; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-wait   { background: #fffaeb; color: #b54708; }
.badge-ok     { background: #eff8ff; color: #175cd3; }
.badge-info   { background: #f4f3ff; color: #5925dc; }
.badge-done   { background: #ecfdf3; color: #067647; }
.badge-cancel { background: #fef3f2; color: #b42318; }

/* ---------- Hesabim ---------- */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.account-menu { list-style: none; margin: 0; padding: 8px; }
.account-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    color: var(--text-soft);
}
.account-menu a:hover { background: var(--bg); }
.account-menu a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.stat .label { font-size: 12.5px; color: var(--text-soft); }
.stat .value { font-size: 22px; font-weight: 700; margin-top: 4px; }

/* ---------- Odeme ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.pay-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 13px 14px;
    margin-bottom: 10px;
    cursor: pointer;
}
.pay-option:hover { border-color: var(--primary); }
.pay-option input { width: auto; margin-top: 3px; }
.pay-option strong { display: block; font-size: 13.5px; }
.pay-option small { color: var(--text-soft); font-size: 12.5px; }

.mini-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-item:last-of-type { border-bottom: 0; }
.mini-item img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.mini-item .qty { color: var(--text-soft); font-size: 12px; }

/* ---------- Sayfalama ---------- */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 26px 0 6px;
    flex-wrap: wrap;
}
.pagination a, .pagination .dots {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1f2328;
    color: #a9b0b8;
    padding: 36px 0 0;
    margin-top: 40px;
    font-size: 13px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}
.site-footer h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #a9b0b8; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid #33383f;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
}
.social { display: flex; gap: 10px; }
.social a {
    width: 32px; height: 32px;
    border: 1px solid #3a4048;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.social a:hover { border-color: var(--primary); }

/* ---------- Yardimcilar ---------- */
.text-muted { color: var(--text-soft); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gap-1 { gap: 8px; }
.hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .product-detail { grid-template-columns: 380px 1fr; }
}
@media (max-width: 900px) {
    .shop-layout, .cart-layout, .checkout-layout, .account-layout { grid-template-columns: 1fr; }
    .sidebar, .summary { position: static; }
    .product-detail { grid-template-columns: 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .header-main { flex-wrap: wrap; gap: 12px; }
    .search-form { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
    .menu-toggle { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
        padding: 6px 0;
    }
    .nav-list.open { display: flex; }
    .nav-list > li > a { border-bottom: 0; padding: 10px 4px; }
    .dropdown {
        display: block;
        position: static;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 14px;
    }
    .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr; }
    .topbar-links a:not(.keep) { display: none; }
    .hero { padding: 30px 22px; }
    .hero h2 { font-size: 21px; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item img { width: 70px; height: 70px; }
    .cart-item .cart-right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
    .header-btn span.txt { display: none; }
}
@media (max-width: 460px) {
    .features { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Ürün videosu ---------- */
.media-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.media-toggle button {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-soft);
    cursor: pointer;
}
.media-toggle button.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
.video-box {
    padding: 0;
    background: #000;
    aspect-ratio: 1 / 1;
}
.video-box video,
.video-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
}

/* ---------- Ürün varyantları ---------- */
.variant-values { display: flex; flex-wrap: wrap; gap: 7px; }
.variant-chip {
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text);
}
.variant-chip:hover { border-color: var(--primary); }
.variant-chip.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.variant-chip.unavailable {
    opacity: .4;
    text-decoration: line-through;
}
.variant-row { margin-bottom: 12px; }

/* ---------- Slider görseli ---------- */
.hero.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20,22,26,.85) 0%, rgba(20,22,26,.55) 45%, rgba(20,22,26,.15) 100%);
    border-radius: var(--radius);
}
.hero.has-image > * { position: relative; z-index: 1; }
@media (max-width: 760px) {
    .hero.has-image::before {
        background: linear-gradient(100deg, rgba(20,22,26,.88) 0%, rgba(20,22,26,.7) 100%);
    }
}

/* ---------- Kademeli (toplu alım) fiyat ---------- */
.tier-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 14px 0;
    background: #fafbfc;
}
.tier-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.tier-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tier-table td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table td:nth-child(2) { text-align: right; white-space: nowrap; }
.tier-table td:nth-child(3) { text-align: right; width: 110px; }
.tier-hint { font-size: 12px; color: var(--text-soft); margin-top: 7px; }

/* Listeden hizli varyant secimi penceresi */
.vp-row { margin-bottom: 14px; text-align: left; }
.vp-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.vp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-chip {
    border: 1px solid var(--line); background: #fff; border-radius: 8px;
    padding: 7px 13px; font-size: 13.5px; cursor: pointer; font-family: inherit;
    transition: border-color .15s, background .15s;
}
.vp-chip:hover { border-color: var(--primary); }
.vp-chip.vp-on { border-color: var(--primary); background: var(--primary); color: #fff; }
.vp-chip.vp-off { opacity: .4; text-decoration: line-through; }
.vp-info { margin-top: 12px; font-size: 13.5px; color: var(--text-soft); text-align: left; }
.vp-info.vp-ok { color: var(--green); }
.vp-info.vp-warn { color: var(--red); }

/* Altbilgi odeme logolari (iyzico + kart markalari) */
.footer-pay {
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
    padding: 18px 0 4px; border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 8px; text-align: center;
}
.footer-pay span { font-size: 13px; opacity: .75; }
.footer-pay img { max-width: 320px; width: 100%; height: auto; }
