/* =============================================================
   Carzoon Wishlist — carzoon-wishlist.css
   Heart button + wishlist page styles.
   Integrates with existing plugin design tokens.
   ============================================================= */

/* ── Heart / Save button ──────────────────────────────────── */
.czwl-btn {
    display:         inline-flex;
    align-items:     center;
    gap:             5px;
    padding:         6px 12px;
    background:      rgba(255,255,255,0.92);
    border:          1.5px solid #dde1e9;
    border-radius:   50px;
    font-size:       0.78rem;
    font-weight:     700;
    color:           #555;
    cursor:          pointer;
    line-height:     1;
    transition:      background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space:     nowrap;
    text-decoration: none;
    box-shadow:      0 1px 4px rgba(0,0,0,0.08);
    -webkit-user-select: none;
    user-select:     none;
}
.czwl-btn:hover {
    background:    #fff5f5;
    border-color:  #e84040;
    color:         #e84040;
    transform:     scale(1.04);
}
.czwl-btn--saved {
    background:   #fff0f0;
    border-color: #e84040;
    color:        #e84040;
}
.czwl-btn--saved:hover {
    background:   #ffe4e4;
}
.czwl-btn--loading {
    opacity:   0.6;
    pointer-events: none;
}
.czwl-btn .czwl-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ── Browse card overlay button ───────────────────────────── */
.czwl-card-overlay-btn {
    position:      absolute;
    top:           10px;
    right:         10px;
    z-index:       10;
    padding:       5px 9px;
    gap:           4px;
}

/* ── Wishlist count badge (header) ────────────────────────── */
.czwl-count-badge {
    display:        inline-flex;
    align-items:    center;
    justify-content: center;
    min-width:      18px;
    height:         18px;
    padding:        0 5px;
    background:     #e84040;
    color:          #fff;
    border-radius:  50px;
    font-size:      0.68rem;
    font-weight:    800;
    line-height:    1;
    vertical-align: middle;
    margin-left:    4px;
}

/* ── Single-car page save row ─────────────────────────────── */
.czwl-single-row {
    margin-top: 10px;
}

/* ── Wishlist page wrapper ────────────────────────────────── */
.czwl-wrap {
    max-width:  1100px;
    margin:     0 auto;
    padding:    30px 16px 60px;
    font-family: inherit;
}

/* ── Header ───────────────────────────────────────────────── */
.czwl-header {
    display:     flex;
    align-items: baseline;
    gap:         14px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f5;
}
.czwl-header__title {
    font-size:   1.6rem;
    font-weight: 800;
    color:       #1a2333;
    margin:      0;
}
.czwl-header__count {
    font-size:   0.85rem;
    font-weight: 600;
    color:       #888;
}

/* ── Empty state ──────────────────────────────────────────── */
.czwl-empty {
    text-align:  center;
    padding:     60px 20px;
}
.czwl-empty__icon {
    font-size:     3.5rem;
    margin-bottom: 14px;
}
.czwl-empty__title {
    font-size:     1.35rem;
    font-weight:   800;
    color:         #1a2333;
    margin:        0 0 8px;
}
.czwl-empty__sub {
    font-size:  0.9rem;
    color:      #777;
    margin:     0 0 22px;
}
.czwl-btn-browse {
    display:         inline-block;
    padding:         12px 28px;
    background:      #1a56db;
    color:           #fff;
    border-radius:   8px;
    font-weight:     700;
    font-size:       0.9rem;
    text-decoration: none;
    transition:      background 0.2s;
}
.czwl-btn-browse:hover {
    background: #1348c2;
    color:      #fff;
}

/* ── Car grid ─────────────────────────────────────────────── */
.czwl-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap:                   22px;
}

/* ── Car card ─────────────────────────────────────────────── */
.czwl-card {
    background:    #fff;
    border:        1px solid #e8eaf0;
    border-radius: 12px;
    overflow:      hidden;
    box-shadow:    0 2px 10px rgba(0,0,0,0.06);
    transition:    transform 0.2s, box-shadow 0.2s, opacity 0.3s;
}
.czwl-card:hover {
    transform:  translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.czwl-card--removing {
    opacity:   0;
    transform: scale(0.95);
}
.czwl-card__img-wrap {
    display: block;
    height:  190px;
    overflow: hidden;
}
.czwl-card__img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.czwl-card:hover .czwl-card__img {
    transform: scale(1.04);
}
.czwl-card__no-img {
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       3rem;
    background:      #f5f7fa;
    width:           100%;
    height:          100%;
}
.czwl-card__body {
    padding: 14px 16px 16px;
}
.czwl-card__title {
    font-size:   0.95rem;
    font-weight: 800;
    color:       #1a2333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
}
.czwl-card__title a {
    color: inherit;
    text-decoration: none;
}
.czwl-card__title a:hover {
    color: #1a56db;
}
.czwl-card__price {
    font-size:     1.05rem;
    font-weight:   800;
    color:         #1a56db;
    margin-bottom: 8px;
}
.czwl-card__tags {
    display:     flex;
    flex-wrap:   wrap;
    gap:         5px;
    margin-bottom: 12px;
}
.czwl-tag {
    display:       inline-block;
    padding:       3px 8px;
    background:    #f0f4ff;
    border-radius: 50px;
    font-size:     0.72rem;
    font-weight:   600;
    color:         #556;
}
.czwl-card__actions {
    display:     flex;
    align-items: center;
    gap:         8px;
    flex-wrap:   wrap;
}
.czwl-view-btn {
    flex:            1;
    text-align:      center;
    padding:         8px 14px;
    background:      #1a56db;
    color:           #fff;
    border-radius:   8px;
    font-size:       0.8rem;
    font-weight:     700;
    text-decoration: none;
    transition:      background 0.2s;
    white-space:     nowrap;
}
.czwl-view-btn:hover {
    background: #1348c2;
    color:      #fff;
}
.czwl-card__remove {
    flex-shrink:  0;
    padding:      7px 10px;
    font-size:    0.75rem;
}
.czwl-card__remove .czwl-label {
    display: none;
}

/* ── Browse listing card: relative positioning for overlay ── */
.stm-directory-grid-loop .image {
    position: relative;
}

/* ── Responsive ───────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .czwl-grid {
        grid-template-columns: 1fr;
    }
    .czwl-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* Elementor/header wishlist link shortcode */
.czwl-header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}
.czwl-header-link__icon {
    line-height: 1;
}
.czwl-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.czwl-loading {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    opacity: .75;
}

.czwl-btn {
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    color: #555 !important;
    border-radius: 50px;
    padding: 0px 6px;
    display: inline-flex;
    /*position: absolute;*/
    /*left: 5px;*/
    /*top: 5px;*/
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease !important;
}

.czwl-btn:hover {
    color: #e84040 !important;
    border-color: #e84040;
}

.czwl-btn--saved {
    color: #e84040 !important;
    border-color: #e84040;
    background: #fff0f0;
}

.czwl-btn .czwl-icon {
    font-size: 18px;
    line-height: 1;
}




.czwl-single-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d6dce5;
    background: #ffffff;
    color: #1A3A60;
 
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.czwl-single-btn:hover {
    border-color: #e63946;
    color: #e63946;
    background: #fff7f7;
}

.czwl-single-btn .czwl-icon {
    font-size: 20px;
    line-height: 1;
}

.czwl-single-btn.czwl-btn--saved,
.czwl-single-btn.is-saved,
.czwl-single-btn.active,
.czwl-single-btn.wishlisted {
    color: #e63946;
    border-color: #e63946;
    background: #fff0f0;
}

.czwl-highlighteed {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Small mobile */
@media (max-width: 480px) {
    .czwl-highlighteed {
        width: 25px;
        height: 24px;
    }
    .czl-wrap .czf-action-icon {
     width: 25px;
        height: 24px;
        
    }
}