/* =========================================================
   Hairpol Before & After — ba.css
   ========================================================= */

/* Grid */
.hba-grid {
    display: grid;
    gap: 16px;
}

.hba-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hba-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hba-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.hba-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: box-shadow .2s;
}

.hba-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,.14);
}

/* Image — görsel tam gösterilir, kesilmez */
.hba-image {
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.hba-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .3s ease;
}

.hba-card:hover .hba-image img {
    transform: scale(1.03);
}

/* Meta (graft + teknik) */
.hba-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    align-items: center;
}

/* Badges */
.hba-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 20px;
}

.hba-badge-graft {
    border: 1.5px solid #BD835E;
    color: #BD835E;
    background: transparent;
}

.hba-badge-tech {
    background-color: #BD835E;
    color: #fff;
}

/* Swiper core layout — Elementor her zaman CSS yüklemez, burada garantile */
.hba-swiper.swiper             { overflow: hidden; }
.hba-swiper .swiper-wrapper    { display: flex; transition-property: transform; box-sizing: content-box; will-change: transform; }
.hba-swiper .swiper-slide      { flex-shrink: 0; width: 100%; height: auto; }

/* Swiper slider wrapper */
.hba-swiper-wrap {
    position: relative;
    padding: 0 48px;
}

.hba-swiper .hba-card {
    height: 100%;
}

.hba-swiper-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #BD835E;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: opacity .2s;
    pointer-events: all;
}

.hba-swiper-btn:hover { opacity: .85; }
.hba-swiper-prev { left: 4px; }
.hba-swiper-next { right: 4px; }

@media (max-width: 600px) {
    .hba-swiper-wrap { padding: 0 40px; }
}

/* View all button */
.hba-view-all-wrap {
    text-align: center;
    margin-top: 32px;
}

.hba-view-all {
    display: inline-block;
    padding: 10px 28px;
    background-color: #BD835E !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 10px;
    border: 2px solid #BD835E;
    transition: background-color .18s, color .18s;
}

.hba-view-all:hover {
    background-color: transparent !important;
    color: #BD835E !important;
}

/* Empty */
.hba-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hba-cols-4,
    .hba-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .hba-cols-4,
    .hba-cols-3,
    .hba-cols-2 { grid-template-columns: 1fr; }
}
