/* ============================================================
   Han Ürün Kartları Widget — CSS v1.0
   Caner Demir
   ============================================================ */

.han-up-wrapper *,
.han-up-wrapper *::before,
.han-up-wrapper *::after { box-sizing: border-box; }

/* ── Header ── */
.han-up-header { margin-bottom: 48px; }
.han-up-section-title {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    color: #0D2137;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.2;
}
.han-up-section-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.65;
}

/* ── Kategori Filtre Barı ── */
.han-up-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.han-up-filter-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
    outline: none;
}
.han-up-filter-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}
.han-up-filter-btn.active {
    background: #dc2626;
    color: #ffffff;
}
.han-up-filter-btn.active:hover {
    opacity: 0.9;
}

/* ── Izgara ── */
.han-up-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-desktop, 3), 1fr);
    gap: 24px;
}

/* ── Kart ── */
.han-up-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.3s ease;
}
.han-up-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.han-up-card.han-hidden {
    display: none;
}

/* ── Görsel ── */
.han-up-image-wrap {
    position: relative;
    overflow: hidden;
}
.han-up-image {
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.han-up-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.han-up-image.han-zoom:hover img { transform: scale(1.06); }

/* ── Rozetler ── */
.han-up-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    pointer-events: none;
}
.han-up-badge {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Kart Body ── */
.han-up-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Kategori Etiketi ── */
.han-up-cat-tag {
    font-size: 11px;
    color: #dc2626;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: inline-block;
}

/* ── Ürün Adı ── */
.han-up-name {
    font-size: 18px;
    font-weight: 700;
    color: #0D2137;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.3;
}

/* ── Ayırıcı ── */
.han-up-divider {
    height: 1px;
    background: #f1f5f9;
    margin-bottom: 16px;
    margin-top: auto;
}

/* ── Alt (buton + fiyat) ── */
.han-up-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── WhatsApp Buton ── */
.han-up-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    background: #dc2626;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 50px;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.han-up-btn:hover {
    background: #25d366;
    transform: translateY(-1px);
}
.han-up-wp-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Fiyat ── */
.han-up-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.han-up-price-label {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}
.han-up-price-new {
    font-size: 22px;
    font-weight: 800;
    color: #0D2137;
    line-height: 1;
}

/* ── Hepsini Gör Butonu ── */
.han-up-view-all {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.han-up-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    background: transparent;
    color: #dc2626;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border: 2px solid #dc2626;
    border-radius: 50px;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    cursor: pointer;
}
.han-up-view-all-btn:hover {
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
}
.han-up-view-all-btn svg {
    transition: transform 0.2s;
}
.han-up-view-all-btn:hover svg {
    transform: translateX(3px);
}

/* ════════════════════════════════
   MOBİL
   ════════════════════════════════ */
@media (max-width: 1024px) {
    .han-up-grid { grid-template-columns: repeat(var(--cols-tablet, 2), 1fr) !important; }
    .han-up-image { height: 180px; }
    .han-up-card-body { padding: 14px 14px 16px; }
    .han-up-name { font-size: 16px; }
    .han-up-btn { padding: 10px 14px !important; font-size: 13px !important; }
    .han-up-price-new { font-size: 18px; }
}

@media (max-width: 768px) {
    .han-up-grid { grid-template-columns: repeat(var(--cols-mobile, 1), 1fr) !important; }
    .han-up-section-title  { font-size: 24px; }
    .han-up-section-subtitle { font-size: 14px; }
    .han-up-header { margin-bottom: 28px; }
    .han-up-image  { height: 180px; }
    .han-up-name   { font-size: 15px; margin-bottom: 8px; }
    .han-up-card-body { padding: 12px 12px 14px; }
    .han-up-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
    .han-up-btn    { width: 100%; justify-content: center; padding: 10px 12px !important; font-size: 13px !important; }
    .han-up-price-wrap { align-items: center; flex-direction: row; gap: 6px; justify-content: center; }
    .han-up-price-label { font-size: 11px; }
    .han-up-price-new { font-size: 18px; }
    .han-up-divider { margin-bottom: 10px; }
    .han-up-filter-bar { gap: 6px; }
    .han-up-filter-btn { padding: 7px 14px; font-size: 13px; }
    .han-up-cat-tag { font-size: 10px; margin-bottom: 4px; }
    .han-up-badge { font-size: 10px; padding: 3px 9px; }
    .han-up-badges { top: 8px; right: 8px; }
}

@media (max-width: 480px) {
    .han-up-grid { gap: 12px !important; }
    .han-up-image { height: 150px; }
    .han-up-card { border-radius: 12px; }
    .han-up-image img { border-radius: 12px 12px 0 0; }
    .han-up-card-body { padding: 10px 10px 12px; }
    .han-up-name { font-size: 14px; }
    .han-up-btn { padding: 9px 10px !important; font-size: 12px !important; border-radius: 40px !important; }
    .han-up-price-new { font-size: 16px; }
    .han-up-filter-bar { margin-bottom: 20px; }
    .han-up-filter-btn { padding: 6px 12px; font-size: 12px; }
}
