﻿.secondhand-page {
    padding: 34px 0 60px;
    background: #fff;
}

.secondhand-wrap {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* SOL FİLTRE */
.secondhand-filter {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    position: sticky;
    top: calc(var(--header-h, 96px) + var(--pagehero-h, 180px) + 18px);
}

.sh-filter-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.sh-group {
    margin-bottom: 14px;
}

    .sh-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 700;
        font-size: 14px;
    }

    .sh-group input,
    .sh-group select {
        width: 100%;
        height: 44px;
        border: 1px solid #d8d8d8;
        border-radius: 10px;
        padding: 0 12px;
        font-size: 14px;
        background: #fff;
    }

.sh-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.sh-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 110px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.sh-btn--ghost {
    background: #fff;
    color: #111;
}

/* SAĞ TARAF */
.secondhand-list {
    min-width: 0;
}

.secondhand-topbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
}

    .secondhand-topbar h2 {
        margin: 0 0 6px;
        font-size: 28px;
        font-weight: 900;
    }

    .secondhand-topbar p {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.secondhand-sort select {
    height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    font-size: 14px;
}

/* ÜRÜN GRID */
.secondhand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* KART */
.sh-card {
    display: block;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .sh-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0,0,0,.10);
    }

.sh-card__img {
    background: #f3f3f3;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

    .sh-card__img img {
        width: 100%;
        height: 230px;
        object-fit: contain;
        display: block;
        padding: 14px;
    }

.sh-card__body {
    padding: 18px;
}

.sh-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.sh-brand {
    color: #666;
    font-weight: 600;
}

.sh-stock {
    color: #0b7d3b;
    font-weight: 700;
}

.sh-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.sh-card p {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    min-height: 44px;
}

.sh-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sh-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f2f2;
    font-size: 12px;
    font-weight: 700;
    color: #444;
}

.sh-code {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    letter-spacing: .2px;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 1200px) {
    .secondhand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .secondhand-wrap {
        grid-template-columns: 1fr;
    }

    .secondhand-filter {
        position: static;
    }

    .secondhand-topbar {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .secondhand-grid {
        grid-template-columns: 1fr;
    }
}

.second-detail-page {
    padding: 34px 0 60px;
    background: #fff;
}

.second-detail-wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.second-detail-gallery,
.second-detail-info {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    padding: 22px;
}

.second-detail-mainimg {
    background: #f3f3f3;
    border-radius: 16px;
    overflow: hidden;
}

    .second-detail-mainimg img {
        width: 100%;
        height: 460px;
        object-fit: contain;
        display: block;
        padding: 14px;
    }

.second-detail-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.second-thumb {
    width: 90px;
    height: 72px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 6px;
    background: #fff;
    cursor: pointer;
}

    .second-thumb.active {
        border-color: #111;
    }

    .second-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.second-detail-brand {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 6px;
}

.second-detail-code {
    display: inline-block;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 12px;
}

.second-detail-info h1 {
    margin: 0 0 14px;
    font-size: 34px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-weight: 900;
}

.second-detail-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-chip,
.detail-stock,
.detail-cond {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #f2f2f2;
}

.detail-stock {
    background: #e6f7ec;
    color: #1a7f37;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.second-detail-model {
    margin-bottom: 18px;
    font-size: 15px;
    color: #333;
}

.second-detail-desc p {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.second-detail-price {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 900;
}

.second-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 170px;
    height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.detail-btn--ghost {
    background: #fff;
    color: #25D366;
    border: 2px solid #25D366;
}

    .detail-btn--ghost:hover {
        background: #25D366;
        color: #fff;
    }

@media (max-width: 980px) {
    .second-detail-wrap {
        grid-template-columns: 1fr;
    }

    .second-detail-mainimg img {
        height: 320px;
    }
}