/* assets/css/style.css - Complete Styles */
body {
    background: #f5f6fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HERO SECTION ===== */
.jd-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    color: #fff;
}

.jd-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.jd-hero-highlight {
    color: #fdcb6e;
}

.jd-hero-subtitle {
    font-size: 1.1rem;
    color: #8c8c8c;
    margin-bottom: 30px;
    max-width: 500px;
}

/* ===== CATEGORIES ===== */
.jd-categories {
    padding: 60px 0;
    background: #fff;
}

.jd-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.jd-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.jd-section-title i {
    color: #fdcb6e;
    margin-right: 10px;
}

.jd-section-view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jd-section-view-all:hover {
    color: #1a1a2e;
}

/* ===== BUSINESS CARDS ===== */
.jd-business-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.jd-business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.jd-business-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.jd-business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jd-business-card:hover .jd-business-image img {
    transform: scale(1.05);
}

.jd-business-body {
    padding: 18px 20px;
    flex: 1;
}

.jd-business-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.jd-business-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jd-business-title a:hover {
    color: #667eea;
}

.jd-business-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
}

.jd-business-rating .fa-star {
    color: #dfe6e9;
    font-size: 0.85rem;
}

.jd-business-rating .jd-star-active {
    color: #fdcb6e;
}

.jd-rating-count {
    font-size: 0.8rem;
    color: #8c8c8c;
    margin-left: 5px;
}

.jd-business-footer {
    padding: 12px 20px 18px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.jd-business-btn {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jd-btn-details {
    background: #f8f9fa;
    color: #1a1a2e;
}

.jd-btn-details:hover {
    background: #667eea;
    color: #fff;
}

.jd-btn-call {
    background: #00b894;
    color: #fff;
}

.jd-btn-call:hover {
    background: #00a381;
    color: #fff;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.product-card-image {
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-image .placeholder {
    font-size: 2.8rem;
    color: #cbd5e1;
}

.product-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.product-price.free {
    background: #10b981;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(245, 158, 11, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
}

.product-badge.featured {
    background: #f59e0b;
}
.product-badge.new {
    background: #2563eb;
}

.product-card-body {
    padding: 14px 16px 12px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #2563eb;
}

.product-card-business {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 2px;
}

.product-card-business i {
    margin-right: 4px;
    color: #94a3b8;
}

.product-card-category {
    font-size: 0.7rem;
    color: #64748b;
}

.product-card-category i {
    margin-right: 4px;
    color: #94a3b8;
}

.product-card-footer {
    padding: 10px 16px 14px;
    display: flex;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
}

.product-card-footer .btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-demo {
    background: #f59e0b;
    color: #fff;
}
.btn-demo:hover {
    background: #d97706;
    color: #fff;
}

.btn-buy {
    background: #10b981;
    color: #fff;
}
.btn-buy:hover {
    background: #059669;
    color: #fff;
}

.btn-view {
    background: #2563eb;
    color: #fff;
}
.btn-view:hover {
    background: #1d4ed8;
    color: #fff;
}

/* ============================================
   STAR RATING
   ============================================ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .jd-hero-title {
        font-size: 2rem;
    }
    
    .jd-hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .jd-stat-number {
        font-size: 1.5rem;
    }
    
    .jd-cta-wrapper {
        padding: 30px 20px;
        text-align: center;
    }
    
    .jd-cta-title {
        font-size: 1.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card-image {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .jd-hero-title {
        font-size: 1.6rem;
    }
    
    .jd-section-title {
        font-size: 1.3rem;
    }
    
    .jd-business-image {
        height: 140px;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-card-image {
        height: 130px;
    }
    
    .product-card-title {
        font-size: 0.8rem;
    }
    
    .product-card-footer .btn {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}