/* ===========================================
   🎯 NexaWeb Personalization Sections
   =========================================== */

#np-personal-sections {
    max-width: 1200px;
    margin: 30px auto 10px;
    padding: 0 20px;
}

.np-section {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef0f5;
}

.np-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.np-section-title {
    font-size: 1.35rem;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    font-weight: 700;
    line-height: 1.3;
}

.np-section-sub {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.np-clear-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.np-clear-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

/* ----- CARD GRID ----- */
.np-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.np-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef0f5;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.np-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.np-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.np-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.np-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
}

.np-badge-amazon          { background: #ff9900; color: #111; }
.np-badge-ebay            { background: #e53238; }
.np-badge-aliexpress      { background: #ff4747; }
.np-badge-etsy            { background: #f1641e; }
.np-badge-electronics_expo { background: #1e88e5; }
.np-badge-sharper_image   { background: #6a1b9a; }
.np-badge-giftcards       { background: #2e7d32; }
.np-badge-coeur_de_lion   { background: #c2185b; }
.np-badge-panasonic_uk    { background: #0277bd; }

.np-card-body {
    padding: 12px 14px 14px;
}

.np-card-title {
    font-size: 0.88rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    margin-bottom: 8px;
}

.np-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.np-price-now {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.05rem;
}

.np-price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.85rem;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 640px) {
    #np-personal-sections {
        padding: 0 12px;
    }
    .np-section {
        padding: 16px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    .np-section-title {
        font-size: 1.15rem;
    }
    .np-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .np-card-title {
        font-size: 0.82rem;
    }
}
