/* ========================================================
   Home Product Carousel — Frontend CSS v1.0.1
   TechReview | Erdal Kurt
   Prefix: hprc-  (çakışma önleme)
======================================================== */

.hprc-wrap {
    max-width: 1448px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
    user-select: none; /* drag sırasında metin seçimi engelle */
}

/* ---- HEADER ---- */
.hprc-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 20px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 24px;
}
.hprc-header-left { display: flex; flex-direction: column; gap: 3px; }

.hprc-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #888;
    line-height: 1;
}
.hprc-section-title {
    margin: 0;
    line-height: 1.2;
    font-size: 22px;
    font-weight: 700;
    color: #0d0d0d;
}

/* ---- NAV ARROWS — DÜZELTİLDİ ---- */
.hprc-nav-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.hprc-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #d0d4e0;
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.hprc-nav-btn svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}
.hprc-nav-btn:hover {
    background: #fff5f5;
    box-shadow: 0 2px 10px rgba(213,18,18,.12);
}
.hprc-nav-btn:focus-visible {
    outline: 2px solid #d51212;
    outline-offset: 2px;
}
.hprc-nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

/* ---- CAROUSEL ---- */
.hprc-carousel-viewport {
    overflow: hidden;
    position: relative;
    cursor: grab;
}
.hprc-carousel-viewport.hprc-dragging {
    cursor: grabbing;
}
.hprc-carousel-track {
    display: flex;
    gap: 18px;
    transition: transform .44s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.hprc-carousel-track.hprc-no-transition {
    transition: none;
}

/* ---- CARDS (5 görünür @ 1448px) ---- */
.hprc-card {
    flex: 0 0 calc(20% - 14.4px);
    min-width: 0;
    background: #fff;
    border: 1px solid #eaecf5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .22s, box-shadow .22s;
    position: relative;
}
.hprc-card:hover {
    border-color: #d4d9ef;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
/* Drag sırasında hover efektini kapat */
.hprc-dragging .hprc-card {
    transform: none !important;
    transition: none;
}

/* ---- CARD IMAGE — TAM OTURMA DÜZELTİLDİ ---- */
.hprc-card-img-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}
.hprc-card-img-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f3f4f8;
}
.hprc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Tam oturma — kırparak doldur */
    object-position: center; /* Ortalanmış */
    display: block;
    transition: transform .38s ease;
}
.hprc-card:hover .hprc-card-img {
    transform: scale(1.05);
}
/* Drag sırasında zoom efektini kapat */
.hprc-dragging .hprc-card-img {
    transform: none !important;
}

.hprc-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f8;
}

/* ---- BADGE ---- */
.hprc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}

/* ---- CARD BODY ---- */
.hprc-card-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hprc-card-brand {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 4px;
    line-height: 1;
}

/* Ürün adı — tıklanabilir link */
.hprc-card-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.hprc-card-title-link:hover .hprc-card-title {
    color: #d51212 !important;
}
.hprc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0d0d0d;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

/* ---- STARS ---- */
.hprc-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.hprc-star { flex-shrink: 0; }
.hprc-score-val {
    font-size: 13px;
    font-weight: 700;
    color: #0d0d0d;
    margin-left: 4px;
    line-height: 1;
}
.hprc-score-max { font-size: 11px; color: #bbb; line-height: 1; }

.hprc-card-divider {
    height: 1px;
    background: #f0f2fa;
    margin-bottom: 10px;
}

.hprc-card-note {
    font-size: 12px;
    color: #555;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ---- CARD FOOTER ---- */
.hprc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f2fa;
    flex-shrink: 0;
}

.hprc-author-meta { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hprc-author-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #e8ecf8;
    color: #4a55a2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: .02em;
}
.hprc-author-name {
    font-size: 11.5px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hprc-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    background: #d51212;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid #d51212;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s, transform .15s;
    line-height: 1;
}
.hprc-read-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.hprc-read-btn svg { pointer-events: none; }

/* ---- DOTS ---- */
.hprc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}
.hprc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dde0ea;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, width .2s;
}
.hprc-dot.hprc-dot--active {
    background: #0d0d0d;
    width: 20px;
    border-radius: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .hprc-card { flex: 0 0 calc(25% - 13.5px); }
}
@media (max-width: 960px) {
    .hprc-card { flex: 0 0 calc(33.333% - 12px); }
}
@media (max-width: 680px) {
    .hprc-card { flex: 0 0 calc(50% - 9px); }
    .hprc-card-img-wrap { height: 160px; }
}
@media (max-width: 420px) {
    .hprc-card { flex: 0 0 100%; }
    .hprc-card-img-wrap { height: 200px; }
}
