/* ============================================
   Lead Marketplace Styles
   Inspired by homeinteriorleads.com design
   ============================================ */

/* ---- Hero Section ---- */
.lead-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.lead-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lead-hero__title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.lead-hero__desc {
    color: #b0b8c8;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.lead-hero__features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
}

.lead-hero__features li {
    color: #d1d9e6;
    padding: 6px 0;
    font-size: 0.95rem;
}

.lead-hero__features li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 1rem;
}

.lead-hero__cta {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.lead-hero__quote-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.lead-hero__quote-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.lead-hero__quote-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.lead-hero__quote-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e8956a, #e07a4a);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.lead-hero__quote-btn:hover {
    background: linear-gradient(135deg, #d4784f, #c96a3a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 122, 74, 0.4);
    color: #fff !important;
    text-decoration: none;
}


/* ---- Products Section ---- */
.lead-products-section {
    padding: 40px 0 60px;
    background: #f8f9fa;
    min-height: 400px;
}


/* ---- Toolbar ---- */
.lead-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.lead-toolbar__count {
    color: #555;
    font-size: 0.95rem;
}

.lead-toolbar__select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: auto;
    outline: none;
    transition: border-color 0.3s;
}

.lead-toolbar__select:focus {
    border-color: #6c63ff;
}


/* ---- Lead Card ---- */
.lead-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef0f2;
}

.lead-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: #d0d5dd;
}

.lead-card__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.lead-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lead-card:hover .lead-card__img {
    transform: scale(1.08);
}

.lead-card__sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.4);
}

.lead-card__category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    padding: 30px 15px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.lead-card__content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lead-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.lead-card__title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.lead-card__title a:hover {
    color: #6c63ff;
}

.lead-card__meta {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.lead-card__meta-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
}

.lead-card__meta strong {
    color: #333;
}

.lead-card__meta--date {
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
    margin-bottom: 12px;
}

.lead-card__price {
    margin-top: auto;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lead-card__old-price {
    color: #999;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.lead-card__current-price {
    color: #1a1a2e;
    font-size: 1.15rem;
    font-weight: 800;
}

.lead-card__add-to-cart {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.lead-card__add-to-cart:hover {
    background: linear-gradient(135deg, #5a52d5, #4840c0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    color: #fff !important;
    text-decoration: none;
}

.lead-card__add-to-cart.added {
    background: linear-gradient(135deg, #28a745, #218838);
}

.lead-card__add-to-cart.added::after {
    content: ' ✓';
}


/* ---- Empty State ---- */
.lead-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
}

.lead-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.lead-empty h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.lead-empty p {
    color: #888;
    font-size: 0.95rem;
}


/* ---- Pagination ---- */
.lead-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.lead-pagination .pagination {
    display: flex;
    gap: 5px;
}

.lead-pagination .page-item .page-link {
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lead-pagination .page-item.active .page-link {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}

.lead-pagination .page-item .page-link:hover {
    background: #6c63ff;
    border-color: #6c63ff;
    color: #fff;
}


/* ============================================
   Mini Cart Sidebar
   ============================================ */
.lead-minicart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s;
}

.lead-minicart-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lead-minicart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.lead-minicart.active {
    right: 0;
}

.lead-minicart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.lead-minicart__header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.lead-minicart__header h4 i {
    margin-right: 8px;
    color: #6c63ff;
}

.lead-minicart__close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.lead-minicart__close:hover {
    color: #333;
}

.lead-minicart__body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
}

.lead-minicart__empty {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 0.95rem;
}

.lead-minicart__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    position: relative;
    animation: slideInRight 0.3s ease;
}

.lead-minicart__item-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.lead-minicart__item-info {
    flex: 1;
    min-width: 0;
}

.lead-minicart__item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-minicart__item-price {
    font-size: 0.85rem;
    color: #666;
}

.lead-minicart__item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 2px 5px;
}

.lead-minicart__item-remove:hover {
    color: #e74c3c;
}

.lead-minicart__footer {
    padding: 18px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.lead-minicart__subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.lead-minicart__btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.lead-minicart__btn:last-child {
    margin-bottom: 0;
}

.lead-minicart__btn--view {
    background: #333;
    color: #fff !important;
    border: 1px solid #333;
}

.lead-minicart__btn--view:hover {
    background: #555;
    color: #fff !important;
    text-decoration: none;
}

.lead-minicart__btn--checkout {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff !important;
    border: none;
}

.lead-minicart__btn--checkout:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    color: #fff !important;
    text-decoration: none;
}


/* ---- Floating Cart Button ---- */
.lead-floating-cart {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: #fff;
    padding: 12px 14px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: -3px 0 15px rgba(108, 99, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 55px;
}

.lead-floating-cart:hover {
    padding-right: 20px;
    box-shadow: -5px 0 25px rgba(108, 99, 255, 0.5);
}

.lead-floating-cart i {
    font-size: 1.2rem;
}

.lead-floating-cart__count {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lead-floating-cart__total {
    font-size: 0.75rem;
    font-weight: 700;
}


/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.lead-card__add-to-cart.adding {
    animation: pulse 0.4s ease;
}


/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .lead-card__image {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .lead-hero-section {
        padding: 40px 0;
    }

    .lead-hero__title {
        font-size: 1.6rem;
    }

    .lead-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .lead-hero-section {
        padding: 30px 0;
    }

    .lead-hero__title {
        font-size: 1.4rem;
    }

    .lead-card__image {
        height: 200px;
    }

    .lead-minicart {
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 575px) {
    .lead-products-section {
        padding: 25px 0 40px;
    }

    .lead-card__content {
        padding: 14px;
    }

    .lead-floating-cart {
        top: auto;
        bottom: 20px;
        right: 20px;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }

    .lead-floating-cart__count,
    .lead-floating-cart__total {
        display: none;
    }

    .lead-floating-cart i {
        font-size: 1.3rem;
    }
}
