.featured-templates {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.template-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF7846;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.template-badge.sale {
    background-color: #FF4757;
}

.template-info {
    padding: 20px;
}

.template-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.template-info h3 {
    color: #B5A63C;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.template-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.template-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    color: #3F3F9F;
    font-weight: 700;
    font-size: 18px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.template-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.add-to-cart-btn {
    flex: 1;
    background-color: #4947A8;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #3a3886;
}

.details-btn {
    width: 46px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: #666;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.details-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .template-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

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

    .template-grid {
        grid-template-columns: 1fr;
    }
}
  
  