/* ==========================================================================
   Dorell — tema üzerine özel stiller
   ========================================================================== */

/* ---------- Ürün kartı ---------- */
.dp-grid { row-gap: 32px; }
.dp-grid > [class*="col-"] { display: flex; }

.dp-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
}

.dp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f4f2;
    border-radius: 6px;
}

.dp-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.dp-card__img--hover { opacity: 0; }

.dp-card:hover .dp-card__img { transform: scale(1.05); }
.dp-card:hover .dp-card__media.has-hover .dp-card__img:not(.dp-card__img--hover) { opacity: 0; }
.dp-card:hover .dp-card__img--hover { opacity: 1; }

.dp-card__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: #111;
    border-radius: 20px;
}

.dp-card__cta {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 12px);
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    white-space: nowrap;
    color: #111;
    background: rgba(255, 255, 255, .95);
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.dp-card__cta i { margin-left: 6px; }

@media (hover: hover) {
    .dp-card:hover .dp-card__cta {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dp-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 6px;
    padding: 18px 8px 4px;
    text-align: center;
}

.dp-card__cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.4;
    min-height: 1.4em;
    color: #9a7b4f;
}

.dp-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .01em;
    /* Uzun başlıklar en fazla 2 satır */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.dp-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s ease, color .2s ease;
}

.dp-card__title a:hover,
.dp-card:hover .dp-card__title a {
    color: #000;
    background-size: 100% 1px;
}

.dp-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #868686;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dp-card__price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

@media (max-width: 575.98px) {
    .dp-grid { row-gap: 24px; }
    .dp-card__title { font-size: 15px; }
    .dp-card__body { padding-top: 12px; }
    /* Küçük ekranda görseli kapatmaması için "İncele" butonu gizlenir; kartın tamamı tıklanabilir. */
    .dp-card__cta { display: none; }
}

/* ---------- Sayfalama ---------- */
.dp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.dp-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dp-pagination a,
.dp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    transition: all .2s ease;
}

.dp-pagination a:hover { border-color: #111; }
.dp-pagination .is-current span { color: #fff; background: #111; border-color: #111; }
.dp-pagination .is-disabled span { color: #b5b5b5; border-color: #efefef; }
.dp-pagination .is-gap span { border: 0; min-width: 20px; padding: 0; }

.dp-products-count { font-size: 14px; color: #868686; }

/* ---------- İç sayfa banner ---------- */
#site-main .page-title { background-size: cover; background-position: center; }
